()
| 5 | import {MODULES} from './common.ts'; |
| 6 | |
| 7 | export const Readme: NoPropComponent = (): any => { |
| 8 | const [summary, body] = useReadme(usePageNode()); |
| 9 | const markdown = summary + '\n\n' + body.replaceAll(/<embed.*? \/>/g, ''); |
| 10 | |
| 11 | return <Markdown markdown={markdown} html={true} skipCode={true} />; |
| 12 | }; |
| 13 | |
| 14 | const toKb = (bytes: number | undefined) => |
| 15 | bytes != null ? `${(bytes / 1000).toFixed(1)}kB` : ''; |
nothing calls this directly
no test coverage detected
searching dependent graphs…