Closed janosh closed 1 year ago
hey @janosh , thanks for reporting this. I had the wrong syntax in the example for the config 🤦♂️ it should be:
remarkPlugins: [
[examples, { defaults: { Wrapper: `/src/lib/Example.svelte` } }]
]
Just needed to add an extra pair of surrounding square brackets. I'll update the README to correct this.
Actually I do have the correct syntax in the README 😅 so yeah - just make sure you add those extra square brackets.
Oops, should have looked at my config more carefully. Sorry for the noise. 🤦 Also, I should have gotten suspicious that it must be my mistake after looking at your tests and finding them very solid. 👍
All good!
Following the readme, I tried setting a custom component to render examples as follows to no effect.
Setting it as code block meta works though: