RDTMD
- VS Code
- TypeScript
- Markup Language
- LaTeX
- SVG
- Parser
- AST
- Open Source
A native technical markup language and VS Code extension, built entirely from scratch with zero runtime dependencies. It replaces the fragmented Markdown ecosystem by bringing LaTeX mathematics, interactive charts, nine kinds of structured diagrams, tabs, metric dashboards, conversations, footnotes and modular files into a single specification, with one-click export to HTML and PDF. Everything is generated as SVG and DOM, with no innerHTML or eval, so it works under the strictest Content Security Policies (CSP).
Installation
code --install-extension RDTvlokip.rdtmdVS Code Marketplace
Live Marketplace data is loading…
Open on the MarketplaceKey figures
- 0
- Runtime dependencies
- 25+
- Highlighted languages
- 9
- Diagram types
- 6
- Chart types
- MIT
- Licence
How it works
Native maths, charts and diagrams
A recursive LaTeX engine (fractions, roots, matrices, integrals, machine-learning operators) and SVG generators for six chart types (bar, line, area, scatter, pie, donut) and nine diagram types (flow, state, sequence, mindmap, timeline, Gantt, quadrant, entity-relationship, class). No KaTeX, Mermaid or Chart.js: zero external assets.
Readable diagrams, no overlaps
Since 1.0.3, edge labels no longer hide arrows or nodes, timeline cards are sized from the measured text, sequence diagrams adapt their spacing to the labels, and mindmaps have no depth limit.
Export, interactive figures and themes
1.1 exports a document as a single self-contained HTML file or as a PDF, saves every chart and diagram as SVG or PNG, lets you zoom and pan diagrams, and offers five preview themes. The language gains an automatic table of contents (@toc), heading anchors and footnotes. The editor gains completion, 24 snippets, quick fixes and scroll synchronisation with the preview.
Predictable syntax, readable even without a renderer
Nested blocks use variable-length fences (::::tabs) with depth tracking, and code blocks containing ::: are ignored by the parser. A document stays readable in a terminal or a raw editor, and a plainText() serializer turns the whole syntax tree into clean text.
Unambiguous metrics
A +2.1% throughput is an improvement, a +2.1% latency is a regression. Metric cards declare their polarity explicitly (good, bad, neutral) instead of guessing a colour from the sign.
Strict CSP compliant
No innerHTML, no eval, no inline styles: every element is built with createElement, createElementNS and textContent. javascript:, vbscript: and malicious data: links are blocked at the inline parsing stage, and exported HTML escapes its embedded data so no text can close the surrounding script tag.
Tabs, conversations, collapsible sections and includes
Native blocks for tabs, dialogue transcripts (user, assistant, system), collapsible sections and the @include directive, with relative path resolution, cycle detection and a depth limit of 8 levels.
Examples

LaTeX mathematics 
Bar chart 
Line chart 
Pie chart 
Flowchart 
Sequence diagram 
Mindmap 
Timeline 
Stacked area chart 
Scatter plot 
Donut chart 
Secondary axis 
State machine 
Gantt chart 
Quadrant 
Entity-relationship 
Class diagram 
Paper theme with a table of contents and a footnote 
Interactive tabs 
Metric cards 
Conversation 
Collapsible section 
Syntax highlighting 
Diff block