Import markdown into svx
See original GitHub issueCould MDsveX add support for importing markdown files into .svx
files?
Would allow for deduplication in a lot of docs sites, I imagine, if you could do
<script>
import Readme from '../readme.md'
</script>
<Readme />
## More markdown
Foo bar.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
mdsvex docs!
To import markdown files as components, add .md to both the Svelte compiler and mdsvex extensions: // svelte.config.js import { mdsvex } from...
Read more >MDSveX: The bridge between Markdown and Svelte
MDSveX helped me find a siiimple way to convert my Svelte app into a full-blown CMS-like website, all without the overhead of an...
Read more >MDsveX - Adding Interactivity with Svelte Components in ...
mdsvex is a markdown preprocessor for Svelte components. ... The Svelte component code should be saved in a .svx file to be recognized...
Read more >SvelteKit blog using Markdown, how to avoid a large file ...
Note that import.meta.globEager actually imports all those modules (svx pages) into the executing module -- you just want to loop through them ...
Read more >mdsvex - npm
It uses markdown-it to parse the markdown, mainly due to the ... the mdsvex preprocessor function is a named import from the mdsvex...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try this:
Yes, that would be very welcome. Thank you.