PShowcase
EN NL
16 / 20

Markdown & images

Render markdown in the browser and resize an image on the server.

.phlo
// markdown: parsed in the browser, zero dependencies
on('input', '#src', el => out.innerHTML = parse_markdown(el.value))

// images: resized on the server with one chained call
%img(%payload->photo)->scale(800, 600)->save()

Live markdown

Type on the left, watch it render on the right.

  • parsed in the browser
  • zero dependencies

parse_markdown(src) does the work.