| 1 | import Layout__markodown__ from "./layout.marko"; |
| 2 | export * as layout from "./layout.marko"; |
| 3 | import * as LayoutModule__markodown__ from "./layout.marko"; |
| 4 | <define/HeadingComponentFallback__markodown__|{ level, content, ...attrs }|> |
| 5 | <${'h' + level} ...attrs><${content} /></> |
| 6 | </> |
| 7 | <const/HeadingComponent__markodown__ = LayoutModule__markodown__.components?.heading ?? HeadingComponentFallback__markodown__ /> |
| 8 | <define/CodeBlockComponentFallback__markodown__|{ language, content }|> |
| 9 | <pre><code class=(language && 'language-' + language)>${content}</code></pre> |
| 10 | </> |
| 11 | <const/CodeBlockComponent__markodown__ = LayoutModule__markodown__.components?.codeBlock ?? CodeBlockComponentFallback__markodown__ /> |
| 12 | <const/LinkComponent__markodown__ = LayoutModule__markodown__.components?.link ?? 'a' /> |
| 13 | <const/ImageComponent__markodown__ = LayoutModule__markodown__.components?.image ?? 'img' /> |
| 14 | <const/BlockquoteComponent__markodown__ = LayoutModule__markodown__.components?.blockquote ?? 'blockquote' /> |
| 15 | |
| 16 | <define/Heading_1__markodown__> |
| 17 | Hello |
| 18 | </> |
| 19 | |
| 20 | <Layout__markodown__ module=null outline=[ |
| 21 | { level: 1, id: 'hello', content: Heading_1__markodown__ }, |
| 22 | ]> |
| 23 | <HeadingComponent__markodown__#hello level=1><Heading_1__markodown__/> |
| 24 | </> |
| 25 | <p>A <LinkComponent__markodown__ href="https://example.com">link</> and an <ImageComponent__markodown__ src="./photo.png" alt="image" title="caption" />.</p> |
| 26 | <BlockquoteComponent__markodown__> |
| 27 | <p>A blockquote.</p> |
| 28 | </> |
| 29 | <CodeBlockComponent__markodown__ language="ts" content="const x = 1;\n"/> |
| 30 | </> |