markdown


The code that drew it
A still frame holds a repeating animation at its first frame and a one-shot at its last, because a still of a moving thing is not reproducible. Run the gallery to review motion.
fn markdown(_window: &mut Window, cx: &mut App) -> AnyElement {
let theme = cx.theme().clone();
stack(&theme)
.w(px(640.0))
.child(Markdown::new("scene.markdown.document", SCENE_DOCUMENT).on_event(|_, _, _| {}))
.child(Divider::new().id("scene.markdown.rule").label("Truncated"))
.child(
Markdown::new("scene.markdown.short", SCENE_DOCUMENT)
.max_lines(4)
.on_event(|_, _, _| {}),
)
.into_any_element()
}