fix(app): highlight inline Markdown in code previews #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/markdown-inline-highlight"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Picking Markdown as the highlight language (pasted-text / attachment preview, and ```md code blocks) only styled headings and list markers: the arborium Markdown grammar (2.18.2, latest) covers block structure only, so bold, italic, strikethrough, inline code and links came back untagged.
MarkdownInlineHighlight.ts(new): inline pass that tags those spans on top of the grammar's HTML; falls back to the grammar output if the text doesn't line up.ArboriumHighlightWorker.ts: apply it for Markdown; keep the block-only output if the result would exceed the output limit.ArboriumThemeBridge.css: nested inline tags keep the parent's weight and style (italic inside bold, bold inside a heading).Tested outside the app against the real grammar: 25 targeted cases, 3,000 fuzz inputs, real READMEs, and computed styles in headless Chromium for both themes. Not yet seen inside Fluxer.
🤖 Generated with Claude Code