From 71b265567c5480e8e8ba2b3206aa93ec64a025bf Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Wed, 17 Jun 2026 10:57:54 -0700 Subject: [PATCH] sandbox: inline-only graphics pattern language + math-bitmap hack Drop committed SVG/STL; refocus on text-only rendering (Mermaid diagrams+charts, math, geojson) and document the inline 'draw anything' hack: \rule + \textcolor pixel bitmaps in a math array, tall bars/struts, and \rlap/\raise positioning, with honest icon-scale limits. --- sandbox/md-graphics-demo/README.md | 324 ++++++------------ sandbox/md-graphics-demo/architecture.svg | 68 ---- sandbox/md-graphics-demo/art.svg | 239 ------------- sandbox/md-graphics-demo/cube.stl | 86 ----- .../md-graphics-demo/gen-architecture-svg.mjs | 87 ----- sandbox/md-graphics-demo/gen-art.mjs | 61 ---- sandbox/md-graphics-demo/gen-cube-stl.mjs | 43 --- 7 files changed, 108 insertions(+), 800 deletions(-) delete mode 100644 sandbox/md-graphics-demo/architecture.svg delete mode 100644 sandbox/md-graphics-demo/art.svg delete mode 100644 sandbox/md-graphics-demo/cube.stl delete mode 100644 sandbox/md-graphics-demo/gen-architecture-svg.mjs delete mode 100644 sandbox/md-graphics-demo/gen-art.mjs delete mode 100644 sandbox/md-graphics-demo/gen-cube-stl.mjs diff --git a/sandbox/md-graphics-demo/README.md b/sandbox/md-graphics-demo/README.md index d8015da8e2..121197cbbf 100644 --- a/sandbox/md-graphics-demo/README.md +++ b/sandbox/md-graphics-demo/README.md @@ -1,283 +1,175 @@ -# Markdown Graphics — a pattern language +# Inline graphics — a pattern language (no committed files) -Diagrams, math, and maps that render on **github.com** straight from text — no -uploaded screenshots, no binary drag-and-drop. Everything here lives in the diff, -reviews as code, and regenerates deterministically. +Graphics that render on **github.com** from **text alone** — nothing committed but +this `.md`. No SVG, no PNG, no STL: if it isn't a fence or `$math$`, it's not here. -Companion to `HAND.md` (code style) and `papers/VOICE.md` (prose). This file is -the craft guide for *visual* explanation inside PRs, issues, and repo docs. +Companion to `HAND.md` (code style) and `papers/VOICE.md` (prose). The craft guide +for *visual* explanation that lives entirely in the diff. > [!NOTE] -> This page is also the live render test. Open it on github.com (or in this PR's -> description) and every block below paints. In a plain editor you'll see the raw -> fences — that's expected; Mermaid/math render server-side at GitHub. +> This page is the live render test. On github.com every block paints; in a plain +> editor you see raw fences — that's expected, GitHub renders them server-side. --- -## The sanitizer boundary (read this first) +## The inline palette (and its hard limit) -GitHub runs all markdown through a sanitizer. Knowing what survives is the whole game: +Text-only, this is everything you get: -| Renders from text | Stripped / inert | -|---|---| -| ` ```mermaid ` diagrams | inline `…` | -| `$math$` and ` ```math ` | `data:` URI images | -| ` ```geojson ` / ` ```topojson ` maps | `