Features Overview¶
MergDown2TeX converts Obsidian notes to publication-ready LaTeX documents.
Core features¶
graph TD
A[Obsidian Note] --> B[WASM Engine]
B --> C[Expand Embeds]
B --> D[Resolve Wikilinks]
B --> E[Convert Citations]
B --> F[Render Mermaid]
B --> G[Convert Equations]
C --> H[.tex File]
D --> H
E --> H
F --> H
G --> H
H --> I[PDF]
H --> J[DOCX]
H --> K[InDesign]
Feature matrix¶
| Feature | Status | Description |
|---|---|---|
| Wikilinks | ✅ | [[Note]] → \hyperref[...]{} |
| Embeds | ✅ | ![[Note]] → recursive expansion |
| Citations | ✅ | @citation → \citep{} + arrows |
| Equations | ✅ | $math$ → LaTeX equations |
| Mermaid | ✅ | ```mermaid `` → PNG |
| Callouts | ✅ | > [!note] → tcolorbox |
| Footnotes | ✅ | [^1] → \footnote{} |
| Tables | ✅ | Markdown tables → LaTeX tables |
| Images | ✅ | ![[image.png]] → \includegraphics{} |
| Cross-references | ✅ | Bidirectional navigation ↑↓ |
Input → Output¶
Wikilinks¶
Input:
Output:
Embeds¶
Input:
Output:
Citations¶
Input:
Output:
Equations¶
Input:
Output:
Mermaid diagrams¶
Input:
Output:
Callouts¶
Input:
Output:
Citation navigation¶
MergDown2TeX adds bidirectional arrows to citations:
% In text
As shown by \citep{smith2020}... ↑
% In bibliography
\textbf{Smith, J. (2020).} Important Research. ↓
graph LR
A[Text] -->|↑| B[Citation]
B -->|↓| C[Bibliography]
Embed expansion¶
MergDown2TeX recursively expands ![[Note]] with depth limit:
graph TD
A[Main Note] --> B[![[Note A]]]
A --> C[![[Note B]]]
B --> D[![[Sub Note 1]]]
B --> E[![[Sub Note 2]]]
C --> F[![[Sub Note 3]]]
Features: - Depth limit (default: 10) - Circular reference detection - Filesystem resolution
Mermaid rendering¶
MergDown2TeX renders Mermaid diagrams to PNG:
Input:
Output:
Supported diagrams: - Flowcharts - Sequence diagrams - Class diagrams - State diagrams - Gantt charts - Pie charts
Image resolution¶
MergDown2TeX resolves images relative to the markdown file:
graph TD
A[Note Location] --> B[Check: Same Folder]
B -->|Found| C[Use Image]
B -->|Not Found| D[Check: Vault Root]
D -->|Found| C
D -->|Not Found| E[Error]
Next steps¶
- Embed Expansion - Detailed embed handling
- Citations - Citation features
- Equations - Equation support
- Mermaid Diagrams - Diagram rendering
- Cross-References - Navigation arrows