Kind: Constant
Source: atloria-monorepo/apps/web/src/components/Viewer/blockNesting.ts
Which markdown children our component map renders as BLOCK-level markup.
This is a server-rendering correctness rule, not a styling preference.
Markdown puts a standalone image in its own paragraph, so 
reaches the renderer as <p><img></p> — and CustomImage renders that img as a
. A browser parsing that HTML closes the
before the
Lives in its own module (rather than inside MarkdownRenderer) so it can be
unit-tested: MarkdownRenderer pulls in ESM-only react-markdown, which this
app's jest transform cannot load.
Was this page helpful?