-
Request Descriptionhow to use https://github.com/remarkjs/remark-gfm ? Alternative Solutions. Additional DetailsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, just install the plugin according to the official instructions and add it to the appropriate // svelte.config.js
import adapter from '@sveltejs/adapter-static'
import { svelteMarkdown } from '@sveltek/markdown'
import remarkGfm from 'remark-gfm'
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: [
svelteMarkdown({
plugins: {
remark: [remarkGfm],
// rehype: [] // you can also add `rehype` plugins
},
}),
],
extensions: ['.svelte', '.md'],
kit: { adapter: adapter() },
}
export default config Also, you can specify plugins in multiple ways, at the PluginsLifecycle: I'll explain it much better in the online docs with additional examples, but I don't have too much time to deal with it right now, so I hope this is ok for now. You can always ask a question if something is not clear 👍🏻 |
Beta Was this translation helpful? Give feedback.
Hi, just install the plugin according to the official instructions and add it to the appropriate
plugins
option, in this case it isremark
option:Also, you can specify plugins in multiple ways, at the
global
,layout
orentry
…