Skip to main content

Tsunagi specifics

Beyond standard markdown, Tsunagi's editor adds a number of its own features on top. You can reach most of them from the toolbar (the row of icons above the field), so you don't have to type them by hand.

Math (LaTeX)

You can write mathematical expressions in LaTeX; they render fully offline (no internet required). See the Math (LaTeX) page for delimiters, commonly used commands, and the rendering engine.

Text color and effects

You can color selected text or apply a rainbow gradient or an animated shader effect (fire, aurora, plasma). Full syntax and examples: Text color and effects.

Diagrams and special content blocks

If you set a code block's language to one of a specific set of keywords, its content renders as a visual specific to that type instead of as code. The one you'll use most often:

```mermaid
graph TD
A --> B
```

A mermaid block like this draws diagrams such as flowcharts and sequence diagrams (offline, just like LaTeX).

Other special blocks that are less common but still available: chemical structures (SMILES notation), function graphs, QR codes, chess positions, phylogenetic trees (Newick notation), music notation (ABC notation), guitar tablature (VexTab), digital timing diagrams, DNA/plasmid maps, syntax (railroad) diagrams, regex visualization, and Chinese character stroke order (Hanzi). Each of these uses its own standard notation: you just need to set the code block's language to the relevant keyword. See the Diagrams and visuals section for each one's full syntax and source.

Adding media

From the paperclip icon in a field's toolbar, you can add a camera capture, a gallery image, an audio recording, an audio file, a 3D model, or a molecule structure, or search for and pick media you've previously imported. Whichever route you use to add it, the result is written into the field with the same image-link syntax:

![i](dosya-adi)

Two small but handy extras: if you put a number between 5 and 100 in the alt text (like ![50](gorsel.png)), you scale the media's width to that percentage; for molecule files, you can put a render style like type=cartoon in the alt text.

Cloze (fill in the blank)

When writing a cloze-type note, you select the text you want to turn into a blank and tap the cloze button in the toolbar; Tsunagi automatically picks which blank number to use. Behind the scenes, this produces syntax like:

⟦c1::text to hide⟧

If you want to add a hint:

⟦c1?hint::text to hide⟧

If you mark multiple blanks in the same note (c1, c2, ...), each one becomes its own separate card; the other blanks stay visible as context on that card instead of appearing as the answer.

You don't need to type this syntax by hand (the brackets aren't characters that are easy to type on a normal keyboard); just use the cloze button in the toolbar.

Small extra formatting options

The toolbar also has: underlined text, highlight (marking with a yellow background), subscript, superscript, and CJK font switching (for Chinese/Japanese/Korean characters). All of these apply to your selected text, so you never have to type the syntax by hand.

You now know the editor. Next up are the card browser and other settings you'll use to find and organize your cards.