Documenting the code snippets manually is a bit dumb, but if I try to extract the component to a separate example, and then load the code in, I get a Prism HMR error.
Example:
Make components/table.svelte a folder: components/table/index.svelte
Create a new file called Example.svelte
Load in Example.svelte from aforementioned index
Add the import: `import Example from './Example.svelte'
Instead of documenting like this (dumb way with manual conversion to entities):
Documenting the code snippets manually is a bit dumb, but if I try to extract the component to a separate example, and then load the code in, I get a Prism HMR error.
Example:
Example.svelte
Instead of documenting like this (dumb way with manual conversion to entities):
I want to document like this to avoid repeating the code snippet: