Markdown
Formatted text from markdown: headings, bold and italic, code, links, lists, tasks, quotes, tables.
Type:
widget
Markdown "# Note\n\nPlain **bold** text."
Long text — a documentation page, an agreement — belongs in a project file:
Markdown src:"content/terms.md"
Parameters
| Parameter | Type | Description |
|---|---|---|
(positional)
/
text
|
string | Markdown text |
src
|
string | Path to a markdown file of the project, from its root. A body written in the markup wins |
style
|
TextStyle | Base style; headings scale from it |
linkColor
|
Color | Link color |
selectable
|
bool | Whether the text can be selected |
copyable
|
bool | A "copy" button on every code block. Off by default |
Body from a file (
src:
)
-
On the site the file is read when the page is built
and ships as ready HTML: search robots see the text, and the file itself does not need to be served. The site serves only
data/**, so a file outsidedata/is not available to visitors — but its text is on the page. - In the app the file is read by the project's data loader, once.
- No file — the block is empty , the page does not break. Check what you built.
-
If both a body and
src:are set, the body is drawn and the file is not read.
Heading anchors
On the site every heading gets an
id
from its text: lower case, spaces become hyphens, punctuation and backticks are removed. Cyrillic stays Cyrillic.
| Heading | Anchor |
|---|---|
## Binding a domain
|
#binding-a-domain
|
## Собственные домены (
domains
)
|
#собственные-домены-domains
|
a second
## Setup
on the same page
|
#setup-2
|
A section can be linked from any page, with an address from the root:
Text "How to bind a domain"
#web href:"/guide#binding-a-domain"
The site's AI assistant builds links by the same rule when it names the section an answer came from.
REEEL code examples
A code block marked
reeel
is highlighted the same way as a file in the editor: element names, parameters, strings, expressions, comments. The panel follows the page theme: light on light, dark on dark, with its own color table for each — and switches together with the theme by itself.
- On the site highlighting is done when the page is built: there is no script, nothing flickers, robots see the same text.
- Errors are not highlighted. An example that does not parse is shown as is.
- Blocks in other languages are printed as plain text.
- A long line scrolls inside the block; the page does not slide sideways.
- In the app an example is drawn as plain text, without highlighting. In the editor preview the example is highlighted.
The "copy" button and live examples
copyable:true
puts a button on every code block that copies its text — on the site and in the app.
A block whose fence is marked with the word
live
(three backticks, then
reeel live
) is an example the reader can change and run. Here is such a block:
Text "Hello"
On the site such a block has a "Run" button. On the first touch the block itself becomes an input field of the same size (without highlighting). The result is shown under the block.
What is behind the button:
-
Where it works.
The example is run by the site's own server, and this is offered only on the documentation site —
docs.reeel.devanddocs.reeel.site. On other sites the button replies that it could not run. -
Consent.
Until the visitor has agreed to cookies, nothing leaves the page: the button brings back the consent banner, and after "yes" the run continues by itself. The page must have a
Consentelement — otherwise there is nothing to ask with. - Limits. The text is at most 4000 characters; the example's macros may copy at most 1000 elements; building takes at most 50 ms; at most 30 runs a minute from one address.
-
What the example cannot reach.
Project files and the network:
import,Markdown src:,JsonDataread nothing,HttpDataand a picture by URL go nowhere,Scriptdoes not run. The example has no site theme or strings either — colors are written as numbers. - Where it is shown. In a frame with its own empty origin: the site's storage and cookies are not visible to it. The frame is light or dark following the page, and as tall as what the example draws (up to 640 px).
-
liveapplies only toreeelblocks. In the app and in the editor preview a live block is an ordinary code block with a copy button.
What is supported
Headings
#
…
######
,
**bold**
,
*italic*
,
code
, links
[text](address)
, bulleted and numbered lists, tasks
- [x]
, quotes
>
, code blocks in triple backticks, GFM tables, the
---
rule. An unsupported construct stays text rather than disappearing.
A wide table scrolls sideways by itself — the page does not slide.
Text can be wrapped by width, as is usual in markdown files: a line break inside a paragraph, a list item or a quote reads as a space. A block ends with an empty line or the start of another block.
An unmarked line right under a list item or a quote continues it rather than starting a new paragraph: to start a paragraph, leave an empty line. In a quote a new paragraph starts with an empty line with a single
>
sign:
> The first paragraph of a quote,
> wrapped by width.
>
> The second paragraph.
What not to do
-
Do not paste a page of prose into the markup as a string, and do not cut it into
$stringskeys paragraph by paragraph. - Do not expect a body that changes while the page is running to be drawn on the site: only what is known at build time — a string or a file — gets onto the page.