pngwn / MDsveX

A markdown preprocessor for Svelte.
https://mdsvex.pngwn.io
MIT License
2.44k stars 102 forks source link

footnotes support #374

Closed zhuganglie closed 2 years ago

zhuganglie commented 2 years ago

HI. I can't get footnotes work even after applying the remark-gfm plugin. Any idea? Thank you.

`/ mdsvex.config.js / import remarkGfm from 'remark-gfm'; import emoji from 'remark-emoji';

const config = { extensions: [".svelte.md", ".md", ".svx"],

layout: { "blog": "./src/lib/templates/post.svelte", "slides": "./src/lib/templates/slide.svelte", },

smartypants: { "dashes": "oldschool" },

remarkPlugins: [emoji, remarkGfm], rehypePlugins: [], };

export default config;

pngwn commented 2 years ago

Do you have a repro anywhere? Is your project public?

jokull commented 2 years ago

Make sure to install npm add --save-dev remark-footnotes@2.0 - 3.0 does not work with mdsvex last time I checked.

pngwn commented 2 years ago

More information on the remark plugin version issues here: https://github.com/pngwn/MDsveX/discussions/236

zhuganglie commented 2 years ago

Thank you for reply. It works after installing remark-footnotees@2.0.