Repository navigation
ArcMD v0.2.1
This release upgrades PDF export to a pure-Go vector pipeline with hierarchical outlines and clickable links, adds native Mermaid diagram rendering, \boldsymbol bold math fonts, and Obsidian ![[...]] image embed compatibility, speeds up large-document editing and command-bar discovery with Pinyin/multi-keyword search and persistent caching, introduces named version milestones with grapheme-level inline diffs, and resolves Windows shortcut and path-handling issues.
Vector PDF export and native Mermaid diagrams
- Pure-Go vector PDF export (
internal/pdf,internal/editor/vectorpdf.go): Export selectable, searchable PDFs directly as scalable vector paths, rectangles, and embedded Type 3 glyph subsets from KaTeX math (regular, bold, italic, and bold-italic) and system fonts with/ToUnicodemappings—eliminating full-page raster JPEG streams while embedding opaque images cleanly. Exported PDFs include hierarchical/Outlinesbookmarks generated from document headings and clickable/Linkannotations for external URLs and internal#headinganchors. - Native Mermaid diagrams (
internal/mermaid,internal/editor/mermaid.go): Renderflowchart/graph(layered layout, subgraphs, 11 node shapes, solid/dashed/thick labeled edges) andsequenceDiagram(participants, actors, sync/async arrows, activations, notes, andalt/opt/loop/parfragments) directly in Go with light/dark theme tokens—no JavaScript or webview. Focusing a Mermaid block opens an editing card with live diagram preview above a monospace source editor (↵↵orTabexits below); diagrams insert from/or the command bar and export into both standalone HTML and vector PDFs.
Search, code blocks, math, and version history
- Mandarin Pinyin, multi-keyword search, and persistent index cache (
internal/pinyin,internal/fuzzy,internal/search): Match Chinese document titles and Space/folder hints by full Pinyin or initials (e.g.zborzhoubao), combine whitespace-separated tokens across titles and full-text search, jump directly to matched fallback terms in the editor, and persist an atomic0600disk index snapshot (search-cache.bin) for instant startup search. - Stateful incremental syntax highlighting and code soft-wrap toggle (
internal/editor/highlight.go,internal/editor/codewrap.go): Upgrade code blocks to a line-cached stateful lexer supporting 17 languages (Go, Rust, C/C++/Java, JS/TS, Python, Ruby, PHP, Shell, JSON/JSONC, YAML, TOML, SQL, HTML, CSS, Markdown, and Mermaid), live```langfence conversion on Enter, a Settings › General default wrap preference (codeNoWrap), and per-block wrap toggles with horizontal scrolling. - Native
\boldsymbolmath rendering (internal/tex,internal/editor/math.go): Parse and render\boldsymbol{...}across display math, inline math, bookmark previews, and vector PDF export using embedded unmodifiedKaTeX_Main-Bold.ttfandKaTeX_Math-BoldItalic.ttffaces (9b2280d), carrying scoped bold styling and glyph cache keys while preserving operator spacing, limits, and integral upper-hook clearance (#4, thanks to@Raspercival). - Version milestones, grapheme-level inline diffs, and Fenwick virtualization (
internal/history,internal/app/versions.go,internal/editor/fenwick.go): Save, rename, and filter protected named milestones in.arcmd/history(labels.json), highlight exact intra-line character and word edits with Unicode grapheme-aware LCS diffing, and index virtualized row heights with anO(log N)Fenwick tree for large documents.
Obsidian compatibility and Windows fixes
- Obsidian
![[...]]image embeds and Space attachment lookup (internal/editor/markdown.go,internal/wiki/wiki.go,internal/app/document.go,internal/app/relocate.go): Import standalone and back-to-back Obsidian image embeds (![[image.png]],![[folder/image.png|360]],![[image.png|360x240]], and![[image.png|caption|width]]) into native image blocks while preserving untouched![[...]]source lines verbatim on save, excluding![[...]]embeds from note wiki-links and[[completion, and resolving Space-root or bare attachment filenames across non-hidden Space directories while keeping External Space isolation strict (#6). - Windows shortcut defaults, menu labels, and path error handling (
internal/editor/keys.go,internal/app/keymap.go,internal/fsutil/fsutil.go,internal/vault/vault.go,internal/prefs/secrets.go,internal/app/document.go): Bindoverview,prev-bookmark, andnext-bookmarktoCtrl+Alt+S/Ctrl+Alt+Up/Downoutside macOS so they do not collapse intoCtrl+SorCtrl+Up/Down, format non-macOSCombo.Label()values asCtrl+Shift+K, distinguish regular-file path blockers from missing files under WindowsERROR_PATH_NOT_FOUND, and rungo test ./...onwindows-2022in CI (#5).
Documentation
- Update
README.md,README.en.md,AGENTS.md, andthird_party/README.mdfor version 0.2.1, vector PDF export, native Mermaid diagrams,\boldsymbol, Pinyin/cached search, version milestones, Obsidian![[...]]image embeds, and Windows fixes.
Data compatibility
Document (.md and legacy .arcmd format 8) and Space configuration (spaces.json format 9) formats are unchanged from 0.2.0. Preferences (prefs.json v1) add an optional codeNoWrap boolean; document history adds an optional .arcmd/history/<doc>/labels.json milestone map; and the configuration directory stores an optional regenerable search-cache.bin snapshot.
Downloads
Packages are available for macOS (Apple Silicon and Intel), Windows x64, and Linux (x64 and ARM64). Verify downloads against SHA256SUMS.txt. Signed update archives and manifests support in-app updates. The plugin marketplace and plugin execution runtimes remain unavailable.