You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
V1.0.3
DITA Map Preview
Add .ditamap custom editor (ditaViewer.mapPreview) with structured preview
Tree mode — hierarchical view of map entries (topicref, keydef, topicgroup, etc.) with display name resolution (navtitle → linktext → keyword → href filename → keys)
Book mode — renders all referenced topics as a continuous reading flow; per-topic asWebviewUri for correct image/cross-reference resolution; duplicate-file detection with skip messages
Mode toggle button — switch between Tree and Book modes from the toolbar
Reltable and topicgroup support — reltables are excluded from the tree; topicgroups contribute children without adding their own entry
Shared Rendering Pipeline
Extract renderTopicToHtml(), buildTitleMap(), makeConrefResolver(), makeFileTitleResolver(), detectNoteLabels(), collectText(), escapeHtml(), escapeAttr() into src/editor/ditaRenderUtils.ts — pure utilities with no vscode dependency, shared between .dita and .ditamap editors
Add renderBookPlaceholder(), renderBookError(), renderBookSkipMessage() for book-mode output
Parser Refactoring
parseXml(xml, tagMap) factory — shared base for both topic and map parsing