| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent eabe907 commit b98bf82
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -340,8 +340,10 @@ function buildToc({ filename }) { | |||
| 340 | 340 | ||
| 341 | 341 | depth = node.depth; | |
| 342 | 342 | const realFilename = path.basename(realFilenames[0], '.md'); | |
| 343 | - const headingText = node.children.map((child) => child.value) | ||
| 344 | - .join().trim(); | ||
| 343 | + const headingText = node.children.map((child) => | ||
| 344 | + file.contents.slice(child.position.start.offset, | ||
| 345 | + child.position.end.offset) | ||
| 346 | + ).join('').trim(); | ||
| 345 | 347 | const id = getId(`${realFilename}_${headingText}`, idCounters); | |
| 346 | 348 | ||
| 347 | 349 | const hasStability = node.stability !== undefined; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments