Skip to content

Commit

Permalink
fix: Use parseFragment instead of text node which breaks formatti…
Browse files Browse the repository at this point in the history
…ng (#720)
  • Loading branch information
johenning authored Jul 9, 2024
1 parent 6d23098 commit 3201c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/scripts/generate-plugin-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ for await (const dir of directories) {
u('heading', { depth: 2 }, [u('text', 'Enabled')]),
...en,
u('heading', { depth: 2 }, [u('text', 'Default configuration')]),
u('text', 'This configuration is added automatically if the plugin is enabled:'),
...parseFragment('This configuration is added automatically if the plugin is enabled:'),
u('code', {
lang: 'json title="knip.json"', // TODO How to set attributes/properties/props properly?
value: JSON.stringify({ [pluginName]: defaults }, null, 2),
Expand Down

0 comments on commit 3201c07

Please sign in to comment.