(markdown: string)
| 3 | import {getThumbnailMarkdown} from '../thumbnail.ts'; |
| 4 | |
| 5 | const bumpMarkdownHeadings = (markdown: string): string => { |
| 6 | let inFence = false; |
| 7 | return markdown |
| 8 | .split('\n') |
| 9 | .map((line) => { |
| 10 | if (line.startsWith('```')) { |
| 11 | inFence = !inFence; |
| 12 | return line; |
| 13 | } |
| 14 | return inFence || !line.startsWith('#') |
| 15 | ? line |
| 16 | : line.replace(/^(#{1,5})(\s)/, '$1#$2'); |
| 17 | }) |
| 18 | .join('\n'); |
| 19 | }; |
| 20 | |
| 21 | export const DemoNodeSection: FunctionComponent<{readonly node: Node}> = ({ |
| 22 | node, |
no outgoing calls
no test coverage detected
searching dependent graphs…