Dev - #13
Merged
Merged
Dev#13
Conversation
…+ editor) Fenced blocks tagged ascii/diagram/ascii-art — or untagged blocks that score as diagram-like — now render as chrome-free, auto-fitted figures instead of line-numbered code blocks: - src/markdown/asciiDiagram.ts: pure, single-pass detector (Unicode box/block/ arrow chars score directly; classic +-|/arrow ink only when structural, so code with fat arrows, YAML, diffs, and GFM tables stay code blocks), plus codePointWidth/maxVisualColumns (tabs, CJK/emoji wide chars) and a defensive title="…" fence-meta parser; text/txt/plain fences are a hard escape hatch - AsciiDiagram component: raw text in an aria-hidden pre inside a role=img figure (localized label en+ar), optional figcaption from the fence meta; emits --diagram-cols/rows for the CSS fit math - document.css: JetBrains Mono, fixed 1.2 leading so verticals connect, ligatures/kerning off, never wraps; width auto-fit via container-query units (font-size: min(base, 100cqw / cols·0.6)) — zoom-proof, same math in the preview card and the Paged.js page box - pageStyles.ts: rows-based font-size cap so a diagram taller than the page scales down intact instead of triggering the unbreakable-pre blank-page spill; verified 68-row fixture lands whole on one page with its heading - rehypeFenceMeta plugin: copies code.data.meta into a data-meta attribute before rehype-raw reserializes the tree (raw drops data fields) - editor: /Diagram (ASCII) and /Folder tree (ASCII) slash scaffolds (en+ar) - polish: cheat-sheet row, formatting-help row, two diagram templates (ASCII Architecture, ASCII Folder Tree) with auto-generated marketing pages, TemplatePage pre override gets the same diagram branch, README/ARCHITECTURE docs Verified: 25 new unit tests; preview screenshots (fixtures A–D, dark, 3 skins, RTL, 50/150% zoom); PDF export (A intact on one page, wide fixture auto-shrunk via cqw inside Paged.js, no blank pages); HTML/Word exports download clean; Mermaid/KaTeX/code blocks unaffected; marketing build prerenders 104 pages.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of Change
feat— new featurefix— bug fixdocs— documentation onlyrefactor— code change that neither fixes a bug nor adds a featurechore— tooling / maintenancetest— adding or updating testsperf— performance improvementci— CI / build changesScreenshots
Checklist
npm run typecheckpassesnpm run lintpassesnpm run buildpassesany, immutable updates, logical CSS)console.log(uses@/lib/logger)