remark-directive
mdx-bundler
remark-directive | mdx-bundler | |
---|---|---|
4 | 8 | |
222 | 1,696 | |
5.4% | - | |
6.4 | 5.7 | |
6 months ago | about 1 month ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
remark-directive
-
How to support admonition (or callout) in Markdown
Fortunately, we don't have to write any code as there is remark-directive that does exactly what we need.
-
What are the weirdest CMS you've seen used to host content?
The projects this solutions works with are customised Sveltekit projects I made. It has everything: markdown parser using Mdsvex, image converting tool using vite-imagetools, it has toml parser, and of course live preview and lots of other smaller things like markdown directives.
-
MDSveX: The bridge between Markdown and Svelte
The coolest thing is that MDSveX hooks into remark and rehype, which provides a whole ecosystem of plugins to choose from.
-
Does anyone know of an editor that supports directives?
No, not formally, but there are plugins for the various process that implement it based on the spec I linked to, like markdown-it and remark.
mdx-bundler
-
Should I use a CMS
Personally using https://github.com/kentcdodds/mdx-bundler
-
How to support admonition (or callout) in Markdown
Exact code could be different if you're using mdx-bundler, Contentlayer, or anything else. But there should be a similar API for adding components.
-
Give your blog superpowers with MDX in a Next.js
mdx-bundler
-
Powerful Code Blocks with Code Hike and MDX
Do note that Code Hike also works with Next MDX Remote and MDX Bundler however, we are going to look at a simple example with the official MDX plugin for Next.js.
-
mdx-bundler users: did you find a way to place a cover image in frontmatter?
i'm having a hard time finding a solution, just like others → https://github.com/kentcdodds/mdx-bundler/issues/70
-
Ask HN: How to build a light weight personal blog?
Depends on what functionality you'd like to add as you go. I recently built my site from scratch (with no prior experience) using NextJS, MDX and mdx-bundler [1]. Having the ability to add custom components, or statically generate a related posts matrix are all super useful.
1: https://github.com/kentcdodds/mdx-bundler
https://olickel.com
-
Quick comparison of MDX integration strategies with Next.js
MDX Bundler differs from all of the other packages listed above in that it is Framework agnostic, meaning you can use it outside of Next.js. Like next-mdx-remote, no changes to the next.config.js file are necessary.
-
How I Made My Multilingual Blog
To make Next.js works with MDX, we need to compile and bundle the markdown files. For this task, I decided to go with the new mdx-bundler library made by the famous Kent C. Dodds.
What are some alternatives?
rehype - HTML processor powered by plugins part of the @unifiedjs collective
next-mdx-remote - Load mdx content from anywhere through getStaticProps in next.js
remark - markdown processor powered by plugins part of the @unifiedjs collective
mdx - Markdown for the component era
MDsveX - A markdown preprocessor for Svelte.
Tailwind CSS - A utility-first CSS framework for rapid UI development.
Next.js - The React Framework
markdown-it-container - Fenced container plugin for markdown-it markdown parser
esbuild-plugin-alias - esbuild plugin for path aliases
rehype-toc - A rehype plugin that adds a table of contents (TOC) to the page
next-mdx-enhanced - A Next.js plugin that enables MDX pages, layouts, and front matter