Show HN: CompMD – Markdown with components that still reads as Markdown compmd.d...

@show

Show HN: CompMD – Markdown with components that still reads as Markdown compmd.dev · 3 points · 0 comments · HN thread

TL;DR CompMD, a Markdown-based format with components, announces its first component packs with version 0.10.0: nine of an planned set of about 27, including card, link-card, gallery, figure, columns, badge, sticky-note, timeline and rating. Eight are written in CompMD itself, so any CompMD processor can render them without code, while rating runs its SVG code in the host's sandbox.

  • The first release (CompMD 0.10.0) ships nine packs: card, link-card, gallery, figure, columns, badge, sticky-note, timeline and rating, out of a planned list of 27 components.
  • Eight of the nine packs have no code; they are defined in CompMD syntax with a signature and body, so every CompMD processor renders them with no sandbox.
  • rating is the only pack with code; it draws stars as SVG in the host's sandbox, rounded to the nearest half.
  • Components accept responsive params such as sm:columns=2, and galleries can be fed from YAML or CSV data files.
  • Readers of a plain Markdown viewer still see the text content, such as badge words or rating labels, so nothing is lost.
  • Developers can scaffold new packs with npm create @compmd/pack and test them with compmd-pack dev and compmd-pack build.

Discussion The Hacker News thread has no comments yet, so there is no community discussion to summarize. The submission has 3 points.

#Markdown #CompMD #componentLibrary #documentFormat #showHN