ssssota / svelte-exmarkdown

Svelte component to render markdown.
https://ssssota.github.io/svelte-exmarkdown
MIT License
168 stars 5 forks source link

Use multiple plugins #256

Closed dalton5 closed 2 weeks ago

dalton5 commented 2 weeks ago

Hi,

How can I use muliple plugins at the same time.

If I take as an example your doc.

const plugins: Plugin[] = [ { remarkPlugin: [remarkMath], rehypePlugin: [ rehypeHighlight, rehypeKatex], },

The rehypePlugin takes only the first one.

How can I use several plugins?

Thanks,

dalton5 commented 2 weeks ago

Ok I fixed the issue.

Did not urnderstand how it works. Clearer now.

const plugins = [ gfmPlugin(), { remarkPlugin: [remarkMath], rehypePlugin: [rehypeKatex], }, { rehypePlugin: rehypeHighlight } ];

dalton5 commented 2 weeks ago

Close the ticket then