remark-directive
MDsveX
Our great sponsors
remark-directive | MDsveX | |
---|---|---|
4 | 16 | |
216 | 2,179 | |
9.3% | - | |
6.4 | 7.1 | |
6 months ago | 16 days 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.
MDsveX
- Ask HN: Looking for lightweight personal blogging platform
-
Crafting Custom flavored Markdown for Svelte with mdsvex
In the ever-evolving world of web development, content remains king. For sites heavy with documentation, blogs, guides, changelogs, or engineering wikis, Markdown has emerged as the go-to language for crafting readable, maintainable content. However, the standard Markdown might not always fit the bill, especially when you're looking to add a unique touch or specific functionality to your Svelte-powered websites. Enter mdsvex - a Svelte preprocessor that not only understands Markdown but extends its capabilities, allowing developers to introduce custom-flavored Markdown.
-
recommended CMS to use with SvelteKit?
I was working on my blog websites. The current method I use to add more posts is using mdsvex(https://github.com/pngwn/MDsveX) it turns my markdown files into post.
- How to include a set of prebuilt documentation html pages into sveltekit pages?
-
Help with tabs component
Oh right sorry. MDSVEX is a preprocessor for using Svelte components in markdown files. SVX is just the file format for it
-
How to render svelte component called in a string?
If mdsvex is not applicable, I would still look through it's sources to see how they handle it and maybe find some useful ideas. Looks like there are multiple packages that handle all that parsing and preparing: https://github.com/pngwn/MDsveX/tree/master/packages
-
STWUI - Svelte-TailwindCSS UI
You can use those components in plain markdown. We will have to write documentation for inlang. Instead of requiring a preprocessor like MDX, MDsvex, or Stripe Markdoc, web components can be used instead. Reducing boilerplate, increasing maintainability and last but not least the community does not have to reinvent the wheel for every markdown preprocessor. Just use the platform. Just use web components in markdown.
-
best way to build a personal blog post with svelte and markdown
SvelteKit plus mdsvex. There are quite a few examples out there, e.g. https://github.com/rodneylab/sveltekit-blog-mdx.
-
Using Svelte+Kit for our company website [self-promotion]
One issue we previously had with parsing Markdown with MDsveX was how to get a list of blogs without embedding all the blog content into some JS files... There's quite a few posts online and that's why I figured I'd talk about it here because it seems to be a common pain with SvelteKit and adapter-static. Ultimately what we did was use route parameters and different endpoints for the different requests, which you can see here.
-
Blogging in SvelteKit
We’re going to use mdsvex to render our Markdown posts. It’s a Markdown preprocessor for Svelte which allows you to use Svelte templating and components amongst your Markdown.
What are some alternatives?
rehype - HTML processor powered by plugins part of the @unifiedjs collective
marked - A markdown parser and compiler. Built for speed.
remark - markdown processor powered by plugins part of the @unifiedjs collective
vite-imagetools - Load and transform images using a toolbox :toolbox: of custom import directives!
mdx - Markdown for the component era
svelte-adders - Easily add integrations and other functionality to Svelte apps
markdown-it-container - Fenced container plugin for markdown-it markdown parser
vitest-svelte-kit - [Deprecated] Automatically configure Vitest from your SvelteKit configuration.
rehype-toc - A rehype plugin that adds a table of contents (TOC) to the page
svelte-tiny-virtual-list - A tiny but mighty list virtualization library for Svelte, with zero dependencies 💪 Supports variable heights/widths, sticky items, scrolling to index, and more!
remark-react - Legacy plugin to transform to React — please use `remark-rehype` and `rehype-react` instead
website - Verifa website written in Go with Templ + HTMX