Reference

Markdown in Dunjii

Dunjii pages are GitHub-flavored markdown with a few additions for running a game. Each one still reads as plain text in any other editor.

View as markdown

Title and subtitle

The # heading is the page's title. An italic line right under it becomes the subtitle.

# Eldric Vael
*Old elf, scholar of Oghma*An italic line right under the title is the subtitle.
Finds the undead in the temple fascinating rather than terrifying. Trails off when a new idea arrives.

Eldric Vael

Old elf, scholar of Oghma

Finds the undead in the temple fascinating rather than terrifying. Trails off when a new idea arrives.

Callouts

A blockquote whose first line is [!callout] becomes a box. Dunjii removes the marker line and draws the rest. A blockquote without the marker stays a quote.

> [!callout]The marker. It has to be the first line of the blockquote.
> ### Locked door
> DC 15 to pick. The key hangs in the abbot's study, behind the tapestry.

Locked door

DC 15 to pick. The key hangs in the abbot's study, behind the tapestry.

Block layouts

A comment line before a list or a table changes how Dunjii draws it. Other markdown editors hide comments, so the file still reads correctly in Obsidian or on GitHub.

<!-- block: layout=vitals -->Draws each item as a box, with the bold words as its label.
- **AC** 12
- **HP** 50
- **Speed** 30 ft.
<!-- block: layout=inline -->Puts the items side by side on one line.
- **Init** +2
- **Passive Perception** 13
- **CR** 6

Add scale=0.9 after the layout to draw the block at 90% of its size. The layouts:

LayoutValueGoes beforeGames
Plain linesplain-linesA listAll
Inline listinlineA listAll
VitalsvitalsA listAll
Abilities (D&D 2024)dnd-2024-ability-gridA tableD&D 5e
  • AC 12
  • HP 50
  • Speed 30 ft.
  • Init +2
  • Passive Perception 13
  • CR 6

Highlights and rolls

Two equals signs on each side highlight text. Dice notation such as 2d6 + 4 becomes a button that rolls it on a Dunjii page, and a highlighted bonus such as ==+6== rolls a d20 with that bonus.

**Arcane Burst.** ==+6== to hit, 16 (3d8 + 3) force damage.==+6== is highlighted and rolls 1d20 + 6. 3d8 + 3 rolls as written.

Arcane Burst. to hit, 16 () force damage.

Double brackets link to another document in your workspace by its name. A Sourcebook page links by its address.

[[Eldric Vael]]The document named Eldric Vael.
[[Eldric Vael#Personality|the old scholar]]A heading in it, shown as "the old scholar".
![[mistwood-map.png]]An image from your workspace, drawn in place.
[Fireball](https://dunjii.com/sourcebooks/dnd-srd-5.2.1/Spells/Fireball)A Sourcebook page.

Moving or renaming a document in the app updates the links that point at it.

Everything else

Tables, lists, task lists, bold, italic and images work as in any GitHub-flavored markdown. Frontmatter at the top of a file sets the document's type and its settings: see Document types and Folder settings.