4.0.3 • Published 24 days ago
@cartamd/plugin-tikz v4.0.3
Carta TikZ Plugin
This plugin adds support for PGF/TikZ illustrations thanks to TikzJax. It uses the code generated for the Obsidian-TikZ plugin. Install it using:
npm i @cartamd/plugin-tikz
Important Notes
- This plugin requires the import of a heavy library (~7Mb), which is dynamically imported at runtime;
- Generated images are not ssr compatible, as they are rendered in the browser;
- You need to update your sanitizer to allow the specific tag:
<div type="text/tikz">
.
Setup
<script lang="ts">
import { Carta, MarkdownEditor } from 'carta-md';
import { tikz } from '@cartamd/plugin-tikz';
import '@cartamd/plugin-tikz/fonts.css';
const carta = new Carta({
extensions: [tikz()]
});
</script>
<MarkdownEditor {carta} />
Documentation
Checkout the docs for examples, options and more.
4.0.3
24 days ago
4.0.2
25 days ago
4.0.1
27 days ago
3.0.2
5 months ago
3.0.1
6 months ago
3.0.0
6 months ago
4.0.0
6 months ago
2.8.0
6 months ago
2.7.2
7 months ago
2.7.1
7 months ago
2.7.0
7 months ago
2.6.0
7 months ago
2.5.0
8 months ago
2.4.1
8 months ago
2.4.0
8 months ago
2.3.1
9 months ago
2.3.0
9 months ago
2.2.1
9 months ago
2.2.0
9 months ago
2.1.1
9 months ago
2.1.0
9 months ago
2.0.8
9 months ago
2.0.7
9 months ago
2.0.6
9 months ago
2.0.5
9 months ago
2.0.4
10 months ago
2.0.3
10 months ago
2.0.2
10 months ago
2.0.1
10 months ago
2.0.0
10 months ago