Skip to content

Commit c896a0c

Browse files
committed
fix(2048): drop preview frame on the design markdown story
1 parent 78bb185 commit c896a0c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

examples/2048/design/serve.nu

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,11 @@ def render-stories [slug: string]: nothing -> list {
355355
]
356356
"palettes" => (palette-catalog | each {|p| palette-story $p })
357357
"markdown" => [
358-
(story "rendered via .md, in <main> exactly as the /notes pages render it" [
359-
(MAIN {__html: ($MD_SAMPLE | .md | get __html)})
360-
])
358+
# Page content, not a component, so it skips the .render preview
359+
# frame and renders straight into <main>, exactly as /notes does.
360+
(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)}))
361363
]
362364
_ => []
363365
}

0 commit comments

Comments
 (0)