We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78bb185 commit c896a0cCopy full SHA for c896a0c
1 file changed
examples/2048/design/serve.nu
@@ -355,9 +355,11 @@ def render-stories [slug: string]: nothing -> list {
355
]
356
"palettes" => (palette-catalog | each {|p| palette-story $p })
357
"markdown" => [
358
- (story "rendered via .md, in <main> exactly as the /notes pages render it" [
359
- (MAIN {__html: ($MD_SAMPLE | .md | get __html)})
360
- ])
+ # Page content, not a component, so it skips the .render preview
+ # frame and renders straight into <main>, exactly as /notes does.
+ (SECTION {class: "story"}
361
+ (P {class: "label"} "rendered via .md, in <main> exactly as the /notes pages render it")
362
+ (MAIN {__html: ($MD_SAMPLE | .md | get __html)}))
363
364
_ => []
365
}
0 commit comments