Markdown playground

Live GFM preview: the chunk reads the textarea, POSTs the source to a server function, and swaps the sanitized HTML reply into the preview.

  • refValueStr reads the textarea from wasm
  • renderMarkdown runs the framework's sanitizing GFM renderer
  • listDiff swaps the reply HTML through the keyed reconciler
  • z-on-input-id stamped at hydrate gives keystroke-live preview

Guide: Markdown & highlighting

ready

Hello, playground

Type GFM on the left; the preview re-renders through the renderMarkdown server function.

  • sanitized output (raw HTML is stripped)
  • fenced code is highlighted:
const answer: i32 = 42;