Skip to content

Advanced formatting

This page covers formatting beyond standard GFM that Lapis adds for richer notes. For headings, lists, emphasis, and other basics, start with Basic formatting.

When pipe tables are too limiting, use grid-table syntax with + border lines:

+-------------------+-----------+
| Table Headings | Here |
+--------+----------+-----------+
| Sub | Headings | Too |
+========+==========+===========+
| cell | column spanning |
| spans +----------+-----------+
| rows | normal | cell |
+--------+----------+-----------+

Grid tables support multi-line cells, nested formatting, and code blocks inside cells. The markdown editor provides the same row and column editing tools as pipe tables.

See Tables and checklists for pipe-table syntax and MultiMarkdown colspan/rowspan options.

Beyond - [ ] and - [x], Lapis accepts any single character inside task brackets:

- [x] Completed
- [ ] Open
- [?] Needs clarification
- [-] Cancelled

These render as interactive checkboxes in reading mode with the character shown inside the box.

In addition to blockquote callouts (> [!note]), Lapis supports remark-directive syntax for inline and container alerts:

:note[Short inline callout text]
:::tip
Container callout with multiple paragraphs.
:::

Common directive names match block callout types: note, tip, warning, info, question, success, danger, and others. See Callouts for the full type list.

Lapis passes raw HTML through the preview pipeline when notes contain inline or block HTML tags. This is useful for <br> line breaks, <kbd> keyboard hints, or <span> styling.

Keep HTML minimal. Complex layouts may not match editor styling, and HTML will not port cleanly to tools that strip tags.

The markdown editor supports folding headings, list sections, and code blocks in source and live preview. Click the fold gutter indicator next to a foldable region to collapse it while editing.

Folding is an editor convenience. It does not change the saved file content.

When embedding a vault image, add width or width-by-height after the pipe:

![[assets/diagram.png|400]]
![[assets/diagram.png|400x300]]

If only width is given, height scales to preserve aspect ratio.