Wilang Documentation1.0.0+4

Writing Markdown#

Markdown cells hold the prose around your calculations: explanations, derivations, and notes to your future self. Markdown prose itself is never sent to the engine — only {{ ... }} inline calculations read engine values, as read-only consumers (see below). Use a math cell for calculations.

Start a Markdown cell#

Insert a Markdown cell, or use Toggle Math/Markdown (Ctrl+/). A cell stays Markdown when you remove a heading prefix, and the same toggle returns it to math. Alt+P changes the preview, and Live Markdown Preview in Settings controls how unfocused lines display.

Basic syntax#

Copy this into a Markdown cell:

# Heading

A paragraph with **bold**, *italic*, ~~strikethrough~~ and `inline code`.

- A list item
- [ ] A task
- [x] A completed task

> A quotation

[Link](https://example.com)
![Image description](https://example.com/image.png)

| Input | Value |
|---|---|
| Radius | 3 |

```text
A code block preserves its contents.
```

Enter continues a list item, and Ctrl+Enter toggles a task under the caret. Ctrl+B, Ctrl+I, and Ctrl+K apply bold, italic, and links. Inside a code fence, Enter inserts a newline instead of evaluating the block.

Give images descriptive alt text, and remember the URL still has to be reachable.

Formulas#

Use $x^2$ for inline math and $$ around a larger formula. \(x^2\) and \[x^2\] work too, which helps when a formula already contains a dollar sign.

Markdown formulas render LaTeX. They do not run the math engine, so use a math cell when you want a calculation.

Inline calculations#

A Markdown cell can display values from your calculations with {{ expression }}. The expression reads the scope immediately above the Markdown cell — the same top-to-bottom flow as math cells — and refreshes with the document's normal evaluations and blur behavior. Copy this into a Markdown cell below two math cells defining price and quantity:

Total: {{ price * quantity }}

Only the {{ ... }} expressions reach the engine, as read-only consumers: they cannot define variables, change settings, or affect later cells, and definitions below the Markdown cell are not visible to them. Editing the surrounding prose does not invalidate the displayed values; editing the expressions, reordering cells, or changing upstream math refreshes them.

A token that has not been evaluated — or that fails, is unsupported, or went stale — keeps its authored {{ ... }} text with an explanatory tooltip instead of a misleading number. An empty token ({{ }}), an unclosed token, \{{ escaped }}, and `{{ code }}` stay literal, as do tokens inside LaTeX, link destinations, image metadata, and HTML attributes.

Callouts, details, and definitions#

> [!NOTE]
> A useful observation.

<details>
<summary>Show the derivation</summary>

The explanation goes here.

</details>

Term
: Its definition.

*[SI]: International System of Units

Details expand and collapse. Abbreviation definitions annotate matching text. Footnotes use Text[^1] with [^1]: Explanation later in the same Markdown content.

Marks, scripts, and emoji#

Text marks are ==highlight==, ++inserted++, ~~struck~~, ||spoiler||, and <kbd>key</kbd>. Script notation gives ^superscript^, H~2~O, and ^{14}_{6}C. Superscript and subscript are presentation here, not math-cell powers. Supported emoji shortcodes such as :smile: render as emoji.

[[Target]] and [[Target|label]] are the wiki-link forms, and ![[Target]] is the embed form. A target still needs a supported destination or resolver. Note-title completion helps you enter known targets, but arbitrary embedded binary attachments are not guaranteed.

@name mentions and #tag hashtags get their own styling and completion where providers are available. They do not send notifications or assign library metadata. Add a note tag through Edit Tags… when you want library organization.

[toc] requests a table of contents from the headings available in the rendered Markdown context. Contents and footnote jumps need a target inside that context, so they are not a cross-note navigation system. The note header Outline scans note headings for document navigation.

HTML and extension limits#

Supported HTML is a small rendering vocabulary, not a browser. <script>, <style>, and <iframe> are neutralised and shown as literal text rather than executed, while <sup>, <sub>, <mark>, and <kbd> behave as formatting.

Not every extension is active on every surface. Note previews add app behaviour such as link and tag completion, while the static documentation site shows the same source without reproducing the editor's own extensions. That is expected, not a missing feature.

Next steps: Source formatting · Editor navigation and selection · Getting started