A story by infi
Site Features and Updates
Tags
- tutorial
Markdown edited
Markdown
This post is a living demo of every construct the site's renderer accepts today. Each section shows the source, then the result, exactly as a reading page draws it.
Markdown works in story blocks (what you are reading) and in chat. Chat renders everything at a smaller scale.
Contents
Headings
Six levels,
#through######, plus the underlined Setext forms:# Heading one ## Heading two ### Heading three #### Heading four ##### Heading five ###### Heading six This is a Setext H1 === And a text line with --- beneath it becomes a Setext H2 ---Heading one
Heading two
Heading three
Heading four
Heading five
Heading six
This is a Setext H1
And a text line with
---beneath it becomes a Setext H2Paragraphs and breaks
A blank line starts a new paragraph. A single newline merges. Two trailing spaces, or a trailing backslash, force a break.
A blank line starts a new paragraph. Two lines written next to each other merge into one paragraph. Two trailing spaces force a break. A trailing backslash\ also forces a break.A blank line starts a new paragraph.
Two lines written on separate lines merge into one paragraph.
Two trailing spaces
force a break.A trailing backslash
also forces a break.Emphasis and inline marks
**bold** *italic* ***both*** __bold__ _italic_ ~~struck~~ ==highlighted== x^2^ H~2~O `inline code`Bold, italic, both, and the underscore forms bold and italic.
Struck through. Highlighted. Superscript x2. Subscript H2O.Inline code looks like
const answer = 42. Markers inside code stay literal:~~not struck~~.A single tilde stays literal, so
seen 5~6 and 7~8keeps its range. Superscript and subscript refuse whitespace, so^a b^and~a b~stay literal.Text styling
Colour, typeface and size come from a fixed vocabulary, and every value resolves to a theme token.
[Accent tone]{tone=accent} [Muted tone]{tone=muted} [Danger tone]{tone=danger} [Display face]{face=display} [Sans face]{face=sans} [Mono face]{face=mono} [Small]{size=sm} [base]{size=md} [large]{size=lg} [larger]{size=xl} [largest]{size=xxl} [All three]{tone=danger face=mono size=lg}Accent tone, muted tone, danger tone.
Display face, sans face, mono face.
Small, base, large, larger, largest.
All three at once: all three at once.
The sets are closed:
tonemaps to--color-accent,--color-mutedand--color-danger;facemaps to--font-display,--font-sansand--font-mono;sizemaps to relative steps. A theme overrides the tokens, not the names written here. An unknown key or value is dropped, and the text still renders. More design tokens will drop with the site's layout redesign and custom CSS update.Code
An inline span: `countWords(text)`. ```ts export function greet(name: string): string { return `Hello, ${name}!`; } ``` an indented blockAn inline span:
countWords(text).A fenced block with a language tag (the tag becomes a class; there is no highlighting):
export function greet(name: string): string { return `Hello, ${name}!`; }An indented block (four spaces) renders the same way:
the same box, as an indented blockLinks and images
[external](https://example.com) [internal](/browse) <https://example.com> https://example.com/bare <[email protected]> [call someone](tel:+15555550100)  [this text survives](javascript:alert(1))An external link opens in a new tab; an internal link stays in this tab.
Autolinks: https://example.com, a bare https://example.com/bare pasted mid-sentence, and [email protected].
A phone link renders as a plain anchor: call someone.
An image, lazy-loaded until it approaches the viewport:
A link with a banned protocol keeps its text and loses its destination: this text survives.
Lists
- a dash - a nested dash - an asterisk - a plus sign 3. this list starts at three 1. this line said one in the source 1. and so did this oneUnordered lists take three markers and nest by indentation:
- a dash
- a nested dash
- an asterisk
- a plus sign
Ordered lists follow their first marker and renumber everything after it:
- this list starts at three
- this line said one in the source
- and so did this one
It renders 3, 4, 5: the first marker set the pace.
Quotes and rules
> A blockquote holds wisdom. > > It can span paragraphs. > > A nested quote. --- *** ___A blockquote holds wisdom.
It can span paragraphs.
A quote can nest:
deeper wisdom
Horizontal rules come in three flavors, each alone on its line:
Remember the Setext trap: a rule touching the text above it steals that text as a heading.
Tables
| Name | Score | Notes | | :-- | :-: | --: | | Ada | 10 | first | | Grace | 9 | second | ::: figure Scores by name | Name | Score | | :-- | --: | | Ada | 10 | :::Column alignment comes from the delimiter row:
:--left,:-:centre,--:right.Name Score Notes Ada 10 first Grace 9 second A wide table scrolls inside the reading column; it never widens the page.
A caption is a figure:
Name Score Ada 10 Scores by name Callouts
> [!NOTE] > The body renders full markdown: *emphasis*, lists and other constructs. > > - one > - two > [!WARNING] > A warning callout.The five kinds are NOTE, TIP, IMPORTANT, WARNING and CAUTION. Each takes its accent from the theme.
Collapsible blocks
::: details Summary line The body stays hidden until the reader opens it. :::Summary line
The body stays hidden until the reader opens it. This is also the spoiler construct in chat.
Alignment
::: center Centred words. ::: ::: right Right-aligned words. ::: ::: justify Justified words. :::Centred words.
Right-aligned words.
Justified words stretch to both edges of the reading column, which shows most clearly when the line is long enough to wrap.
The four names are
left,center,rightandjustify.Figures
::: figure A captioned image  :::A captioned image The caption is optional, and the body can be an image, a table or any other block.
Pull quotes
::: pull Ada Lovelace The words being quoted. :::The attribution is optional.
Verse
::: verse line one line two :::line one line two line three that is long enough to wrap, so you can see that verse keeps the written line breaks while still wrapping the long line
This is the only construct that preserves single newlines.
Scene breaks
::: break :::A decorative separator. The body is ignored.
Lead paragraphs
::: lead The opening paragraph takes the lead treatment. :::The opening paragraph takes the lead treatment: larger, slightly brighter. Every later paragraph in the same block renders normally.
Later paragraph in comparison to the lead.
Tabs
::: tabs ::: tab One First panel body. ::: ::: tab Two Second panel body. ::: :::First panel body.
Second panel body, with a table:
a b 1 2 The first panel is visible before any client code runs; clicking a label, or the Arrow, Home and End keys, switches panels.
Footnotes
A sentence with a reference[^a] in it. [^a]: The note body, which can hold *markdown* too.A sentence with a reference1 in it, and a second reference to the same note1.
Each reference links to its note; the notes list sits at the end of the node; each note links back to every reference that cited it.
Footnotes are per node, never per story, so a reference cannot cite a definition in another node. A per-story glossary is planned for later, so definitions can be shared across the whole story.
Table of contents
::: toc :::The list at the top of this post is a
::: tocblock: a nested list of the node's own h2 and h3 headings, falling back to h1 when there is no h2. It adds no words of its own to search or word counts. The document is one story node, exactly like footnotes.Escaping and nesting
\*not italic\* \#not a heading \`not code\` \:::A backslash keeps punctuation literal: *not italic*, #not a heading, `not code`.
To show a literal closing fence inside a container, escape it as
\:::.Containers nest up to eight levels; past that a fence line renders as literal text. A fence inside a fenced code block is never a container fence.
An unknown container name is not an error: its body renders unwrapped.
Not implemented
<b>this</b> <div>never a real div</div> <script>alert('nope')</script> - [ ] ship the showcase <span style="color: red">text</span>All raw HTML is escaped: <b>this</b> and <div>never a real div</div>.
Hostile input is just characters: <script>alert('nope')</script> and <img src=x onerror=alert(1)>.
Task lists have no checkbox: - [ ] ship the showcase renders as a bullet whose brackets stay visible.
Literal styling values are not constructs:
#ff0000,font-size: 40pxand<span style="color: red">all stay text. Colour, typeface and size are chosen only from the named vocabulary above.Rendered maths, Mermaid diagrams and code highlighting are not available yet.
Chat
Every construct above renders in chat at the chat scale, details behave as spoilers, and no construct is ever wider than its container. System rows stay plain text.
- a dash
Thumbnail, story banner images, and some fixes edited
New features
Images for stories
You can now add thumbnails and a story banner to your story!
Thumbnails are square format, banners are 3:1 format.Fixes
Some UI changes and fixes:
- Polls
- closed polls no longer show votes left or disabled buttons
- you can now see what was an add-in and who added it in
- QMs can now delete and edit all poll options; their edits don't reset the votes. If reader edits are allowed, their edits still reset votes
- polls that with visible votes are now sorted in descending order
- long poll option text is no longer cut off
- Dice
- closed dice rolls no longer show a disabled button
- Chat
- timestamps now correctly update
- Image upload
- Now a modal in preparation for actual uploading to a host
- Polls
Small Chat Update edited
New features
Basic mod tools are added
![Imgur]()
Slow mode: set the minimum duration between chat messages
![Imgur]()
Mentions:
You can reply to a message by mentioning the message id, like this:
@#98 helloYou can mention a user name like in discord:
@infi ayoKnown issues:
deleting messages doesn't remove them from chat visually and needs a reload (fix is coming soon, just needs a reload command sent)- QMs can't add mods to their chat yet (no UI)
- when you timeout someone and lift their timeout before it ticks out, they won't see it and need to reload chat first before sending messages again
- we're currently not showing the message id, I'll add it soon
Anons and more formatting options edited
New features
Anons
True anon chat and interactions are now allowed (no account/login).
- QMs can let anons chat by toggling it on
- QMs can set how long anons have to wait before being allowed to post
- QMs can set if anons are allowed to vote, add options or roll dice (this is per node, not a global story setting)
![]()
You can enable anon chat and voting/rolls here. Also adjust how many options/rolls each reader is allowed. ![]()
Anons (real ones and users with anon mode) now get IDs Styling update
More styling tools for QMs have been added with custom markdown. The tutorial has been updated to reflect that.
Known Issues
- Only text can be aligned right now. Images are ignoring alignment. This will be fixed later.



