Under the hood, MDX posts on this site are converted to HTML during build
time using the next-mdx-remote
processor which uses
remark and
rehype.
It’s possible to enhance the processing by adding plugins, and previously
I had already enabled the remark-math
and remark-mdx-math-enhanced
plugins in my
article called Rendering Math in Markdown.
I have now decided to explore what other remark plugins are available/
I have decided to install the following:
- remark-slug
- remark-autolink-headings
- remark-toc
- @silvenon/remark-smartypants
- rehype-code-titles
- rehype-highlight
Table of Contents
remark-slug
remark plugin to add anchors headings using GitHub’s algorithm.
remark-autolink-headings
remark plugin to automatically add links to headings.
remark-toc
remark plugin to generate a table of contents.
rehype-code-titles
Rehype plugin for parsing code blocks and adding titles to code blocks.
rehype-highlight
Rehype plugin to highlight code blocks.