We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2596d9 commit 36cf091Copy full SHA for 36cf091
src/preprocessReadme.ts
@@ -120,7 +120,11 @@ export function preprocessReadme(opts: Partial<PreprocessReadmeOptions>): Pick<P
120
121
if (id === "table-of-contents") return;
122
123
- const text = node.children[0].raw;
+ const text = node.children
124
+ .flatMap((child: any) => (child.type === "Element" ? child.children : child))
125
+ .filter((child: any) => child.type === "Text")
126
+ .map((child: any) => child.raw)
127
+ .join("");
128
129
if (text !== undefined) {
130
if (prev === "h3") {
test/README.md
@@ -88,6 +88,8 @@ interface Interface {
88
89
[package.json](package.json)
90
91
+## Rendering with `svelte:component`
92
+
93
## License
94
95
[MIT](../LICENSE)
0 commit comments