The content styles of the app's markdown component: headings, paragraphs, lists, task lists, quotes, rules and a table whose cells convert a literal <br> to a line break.
Heading one
Heading two
Heading three
Heading four
Heading five
Heading six
A paragraph with strong, emphasis, strikethrough, ~single tildes~ that stay literal, inline code, and a link.
First item
Second item
Nested item
Another nested item
Third item
One
Two
Three
Done task
Open task
A quoted paragraph.
A second paragraph in the quote.
Name
Count
Notes
Alpha
1
first second line
Beta
22
plain
Gamma
333
plain
Code blocks and copy button
Fenced code with the registered languages, the copy button (click it, the icon turns into a check for 1400ms and clicks are ignored meanwhile), and the block without the button.
exportconst add =(a:number, b:number):number=> a + b;// sum
Copy button: normal, disabled, loading, with tooltip
Links
TextLink: underlined by default, underline on hover only, primary color, no destination (a span with role button) and http(s) destinations that open in a new tab. In markdown, the URL transform removes unsafe protocols and allows tel:, sms: and data:image/.
Parser options of the Markdown component: GFM on or off, hard line breaks, raw html as text or skipped, element filters, container, leaf and text directives, reference definitions (which render the document whole), and block-by-block streaming.
A paragraph with inline <b>raw html</b> and a line<br>break.
Directives
Before.
Note (info):
Inside a container directive.
An inline new directive and ::marker leaf below.
marker: leaf label
Unregistered kept label disappears.
Reference definition: rendered whole
A reference link makes the document render as a single block.
A second paragraph.
Unstyled
Unstyled heading
A paragraph.
Streaming
Each paragraph shows how many times it rendered. A block stops rendering again once two more blocks follow it, so with incremental rendering on the early paragraphs stop counting while the last ones grow. With it off, every paragraph renders on every chunk.
Streaming
One short paragraph.
Two short paragraph.
Three short paragraph.
Four short paragraph.
Five short paragraph, still arriving word by word.
Six and last paragraph.
Chat prose
The app flavour of the chat prose: every size derives from one font size and spacing is a quarter of it. Text styles and tones, the table container with a scroller that becomes a labelled region when the table is wider than its column, task lists with the checkbox, and the fade-in of list items, rules, rows and quotes.
Heading one
Heading two
Heading three
Heading four
A paragraph with strong, emphasis, strikethrough and inline code. Another sentence in the same paragraph so it wraps onto a second line when the column is narrow.
A long cell with a good deal of text so that the table is wider than its column
Second
Third
Fourth
Fifth
Sixth
Another long cell with a good deal of text so that the table is wider than its column
Second
Third
Fourth
Fifth
Sixth
Chat prose links and writing blocks
Links in prose go through the link component. Under the restricted policy a click asks before the link opens. Code fences without a language, or with text, md or markdown, render as writing blocks.
A long cell with a good deal of text so that the table is wider than its column
Second
Third
Fourth
Fifth
Sixth
Another long cell with a good deal of text so that the table is wider than its column
Second
Third
Fourth
Fifth
Sixth
Wide block in a 20rem column inside a wider container
Column one
Column two
Column three
Column four
Column five
Column six
A long cell with a good deal of text so that the table is wider than its column
Second
Third
Fourth
Fifth
Sixth
Another long cell with a good deal of text so that the table is wider than its column
Second
Third
Fourth
Fifth
Sixth
Tall table: expand it to see the header stay in view
Name
Count
Notes
Row 1
1
note 1
Row 2
2
note 2
Row 3
3
note 3
Row 4
4
note 4
Row 5
5
note 5
Row 6
6
note 6
Row 7
7
note 7
Row 8
8
note 8
Row 9
9
note 9
Row 10
10
note 10
Row 11
11
note 11
Row 12
12
note 12
Row 13
13
note 13
Row 14
14
note 14
Row 15
15
note 15
Row 16
16
note 16
Row 17
17
note 17
Row 18
18
note 18
Row 19
19
note 19
Row 20
20
note 20
Row 21
21
note 21
Row 22
22
note 22
Row 23
23
note 23
Row 24
24
note 24
requirement:markdown-math
includeMath loads KaTeX on first use. Only $$ blocks and runs are math.
MarkdownProse
Inline math with two dollars: $$E = mc^2$$ and a single $dollar$ pair stays text.
$$
\int_0^1 x^2,dx = \frac{1}{3}
$$
A parse error keeps the source: $$\frac{1}{$$
MarkdownProse, renderMath off
Inline math with two dollars: $$E = mc^2$$ and a single $dollar$ pair stays text.
$$
\int_0^1 x^2,dx = \frac{1}{3}
$$
A parse error keeps the source: $$\frac{1}{$$
includeMath
Inline math with two dollars: $$E = mc^2$$ and a single $dollar$ pair stays text.
$$
\int_0^1 x^2,dx = \frac{1}{3}
$$
A parse error keeps the source: $$\frac{1}{$$
includeMath off
Inline math with two dollars: $$E = mc^2$$ and a single $dollar$ pair stays text.
$$
\int_0^1 x^2,dx = \frac{1}{3}
$$
A parse error keeps the source: $$\frac{1}{$$
requirement:markdown-code-editor
Click into an editor and press Mod-f for the find panel. The key bindings are the CodeMirror default, fold, completion, history, indent-with-Tab and find keymaps.
223 characters
requirement:markdown-prism-grammars
The 24 registered languages tokenized by Prism grammars (refractor).
bash
echo"hi"|grep-c h # count
c
intmain(void){return0;}
clike
class A{ int x =1;}
css
a:hover{color: #fff;margin: 0 auto;}
diff
- old line
+ new line
docker
FROM node:20RUN npm ci
go
funcmain(){ fmt.Println("hi")}
java
publicclassA{voidrun(){}}
javascript
constf=(a)=> a +1;// add
json
{"a":[1,true,null]}
jsonc
{"a": 1}
jsx
const a =<divclassName="x">{y}</div>;
kotlin
funmain(){println("hi")}
markdown
# Title- item with `code`
markup
<ahref="/x">link</a>
php
<?phpechostrlen($a);?>
python
deff(x):return x **2
ruby
deff(x)= x.map {|y| y +1}
scss
$c: red;a {&:hover {color:$c;}}
sql
SELECT id FROM t WHERE n >1;
toml
[a]b=true
tsx
constA=({ n }:{ n:number})=><b>{n}</b>;
typescript
typeT={ a:string};const t:T={ a:'x'};
yaml
a:- b
-c:1
ANSI block
Terminal output: the normal and bright colors, background, reverse, palette and truecolor (which the stylesheet leaves unstyled), one decoration per run, carriage-return overwrites and backspaces.
redgreenyellowbluemagentacyanbright blackbright redbright greenbright white white on red reversepalettetruecolorbolddimitalicunderlinestrikehidden
progress 100%
typpe done
Markdown file preview
A markdown file with front matter shows a metadata card above the body. More than 8 entries hide behind Show more.
Metadata
title
Example document
tags
alphabetagamma
draft
false
Body heading
Body paragraph after the front matter.
Metadata
title
Example document
author
A. Person
version
1.0
tags
alphabeta
empty
""
language
en
license
MIT
status
draft
Body after a long front matter.
title: Example document
tags: [alpha, beta, gamma]
draft: false
Body heading
Body paragraph after the front matter.
Metadata
title
Card only
empty
""
tags
onetwo""
Right to left
Right to left text in both flavours: lists and quotes mirror, the quote bar sits at the start edge, code stays left to right.
Each panel sets its own theme scope, so the appearance control above does not change them. The two lower panels nest the opposite theme inside, and the nested parts follow the nearest scope.
Light theme
Heading one
Heading two
Heading three
Heading four
Heading five
Heading six
A paragraph with strong, emphasis, strikethrough, ~single tildes~ that stay literal, inline code, and a link.
First item
Second item
Nested item
Another nested item
Third item
One
Two
Three
Done task
Open task
A quoted paragraph.
A second paragraph in the quote.
Name
Count
Notes
Alpha
1
first second line
Beta
22
plain
Gamma
333
plain
exportconst add =(a:number, b:number):number=> a + b;// sum
{"name":"example","count":3,"ok":true}
# list filesls-la"$HOME"&&echodone
@@ -1,2 +1,2 @@-old line
+new line
plain text without a language
Heading one
Heading two
Heading three
Heading four
A paragraph with strong, emphasis, strikethrough and inline code. Another sentence in the same paragraph so it wraps onto a second line when the column is narrow.
A second paragraph follows directly.
Bullet item
Nested bullet
Third level
Another bullet
First
Second
Done task
Open task
A quote with a bar at the start edge.
TypeScript
const value = 1;
Name
Count
Notes
Alpha
1
first
Beta
22
second
中文段落一。
中文段落二。
redgreenyellowbluemagentacyanbright blackbright redbright greenbright white white on red reversepalettetruecolorbolddimitalicunderlinestrikehidden
progress 100%
typpe done
Metadata
title
Example document
tags
alphabetagamma
draft
false
Body heading
Body paragraph after the front matter.
Dark theme
Heading one
Heading two
Heading three
Heading four
Heading five
Heading six
A paragraph with strong, emphasis, strikethrough, ~single tildes~ that stay literal, inline code, and a link.
First item
Second item
Nested item
Another nested item
Third item
One
Two
Three
Done task
Open task
A quoted paragraph.
A second paragraph in the quote.
Name
Count
Notes
Alpha
1
first second line
Beta
22
plain
Gamma
333
plain
exportconst add =(a:number, b:number):number=> a + b;// sum
{"name":"example","count":3,"ok":true}
# list filesls-la"$HOME"&&echodone
@@ -1,2 +1,2 @@-old line
+new line
plain text without a language
Heading one
Heading two
Heading three
Heading four
A paragraph with strong, emphasis, strikethrough and inline code. Another sentence in the same paragraph so it wraps onto a second line when the column is narrow.
A second paragraph follows directly.
Bullet item
Nested bullet
Third level
Another bullet
First
Second
Done task
Open task
A quote with a bar at the start edge.
TypeScript
const value = 1;
Name
Count
Notes
Alpha
1
first
Beta
22
second
中文段落一。
中文段落二。
redgreenyellowbluemagentacyanbright blackbright redbright greenbright white white on red reversepalettetruecolorbolddimitalicunderlinestrikehidden
progress 100%
typpe done
Metadata
title
Example document
tags
alphabetagamma
draft
false
Body heading
Body paragraph after the front matter.
Dark theme, with a light panel inside
Heading one
Heading two
Heading three
Heading four
Heading five
Heading six
A paragraph with strong, emphasis, strikethrough, ~single tildes~ that stay literal, inline code, and a link.
First item
Second item
Nested item
Another nested item
Third item
One
Two
Three
Done task
Open task
A quoted paragraph.
A second paragraph in the quote.
Name
Count
Notes
Alpha
1
first second line
Beta
22
plain
Gamma
333
plain
exportconst add =(a:number, b:number):number=> a + b;// sum
{"name":"example","count":3,"ok":true}
# list filesls-la"$HOME"&&echodone
@@ -1,2 +1,2 @@-old line
+new line
plain text without a language
Heading one
Heading two
Heading three
Heading four
A paragraph with strong, emphasis, strikethrough and inline code. Another sentence in the same paragraph so it wraps onto a second line when the column is narrow.
A second paragraph follows directly.
Bullet item
Nested bullet
Third level
Another bullet
First
Second
Done task
Open task
A quote with a bar at the start edge.
TypeScript
const value = 1;
Name
Count
Notes
Alpha
1
first
Beta
22
second
中文段落一。
中文段落二。
redgreenyellowbluemagentacyanbright blackbright redbright greenbright white white on red reversepalettetruecolorbolddimitalicunderlinestrikehidden
progress 100%
typpe done
Metadata
title
Example document
tags
alphabetagamma
draft
false
Body heading
Body paragraph after the front matter.
Light theme, nested in dark
Heading one
Heading two
Heading three
Heading four
Heading five
Heading six
A paragraph with strong, emphasis, strikethrough, ~single tildes~ that stay literal, inline code, and a link.
First item
Second item
Nested item
Another nested item
Third item
One
Two
Three
Done task
Open task
A quoted paragraph.
A second paragraph in the quote.
Name
Count
Notes
Alpha
1
first second line
Beta
22
plain
Gamma
333
plain
exportconst add =(a:number, b:number):number=> a + b;// sum
{"name":"example","count":3,"ok":true}
# list filesls-la"$HOME"&&echodone
@@ -1,2 +1,2 @@-old line
+new line
plain text without a language
Heading one
Heading two
Heading three
Heading four
A paragraph with strong, emphasis, strikethrough and inline code. Another sentence in the same paragraph so it wraps onto a second line when the column is narrow.
A second paragraph follows directly.
Bullet item
Nested bullet
Third level
Another bullet
First
Second
Done task
Open task
A quote with a bar at the start edge.
TypeScript
const value = 1;
Name
Count
Notes
Alpha
1
first
Beta
22
second
中文段落一。
中文段落二。
redgreenyellowbluemagentacyanbright blackbright redbright greenbright white white on red reversepalettetruecolorbolddimitalicunderlinestrikehidden
progress 100%
typpe done
Metadata
title
Example document
tags
alphabetagamma
draft
false
Body heading
Body paragraph after the front matter.
Light theme, with a dark panel inside
Heading one
Heading two
Heading three
Heading four
Heading five
Heading six
A paragraph with strong, emphasis, strikethrough, ~single tildes~ that stay literal, inline code, and a link.
First item
Second item
Nested item
Another nested item
Third item
One
Two
Three
Done task
Open task
A quoted paragraph.
A second paragraph in the quote.
Name
Count
Notes
Alpha
1
first second line
Beta
22
plain
Gamma
333
plain
exportconst add =(a:number, b:number):number=> a + b;// sum
{"name":"example","count":3,"ok":true}
# list filesls-la"$HOME"&&echodone
@@ -1,2 +1,2 @@-old line
+new line
plain text without a language
Heading one
Heading two
Heading three
Heading four
A paragraph with strong, emphasis, strikethrough and inline code. Another sentence in the same paragraph so it wraps onto a second line when the column is narrow.
A second paragraph follows directly.
Bullet item
Nested bullet
Third level
Another bullet
First
Second
Done task
Open task
A quote with a bar at the start edge.
TypeScript
const value = 1;
Name
Count
Notes
Alpha
1
first
Beta
22
second
中文段落一。
中文段落二。
redgreenyellowbluemagentacyanbright blackbright redbright greenbright white white on red reversepalettetruecolorbolddimitalicunderlinestrikehidden
progress 100%
typpe done
Metadata
title
Example document
tags
alphabetagamma
draft
false
Body heading
Body paragraph after the front matter.
Dark theme, nested in light
Heading one
Heading two
Heading three
Heading four
Heading five
Heading six
A paragraph with strong, emphasis, strikethrough, ~single tildes~ that stay literal, inline code, and a link.
First item
Second item
Nested item
Another nested item
Third item
One
Two
Three
Done task
Open task
A quoted paragraph.
A second paragraph in the quote.
Name
Count
Notes
Alpha
1
first second line
Beta
22
plain
Gamma
333
plain
exportconst add =(a:number, b:number):number=> a + b;// sum
{"name":"example","count":3,"ok":true}
# list filesls-la"$HOME"&&echodone
@@ -1,2 +1,2 @@-old line
+new line
plain text without a language
Heading one
Heading two
Heading three
Heading four
A paragraph with strong, emphasis, strikethrough and inline code. Another sentence in the same paragraph so it wraps onto a second line when the column is narrow.
A second paragraph follows directly.
Bullet item
Nested bullet
Third level
Another bullet
First
Second
Done task
Open task
A quote with a bar at the start edge.
TypeScript
const value = 1;
Name
Count
Notes
Alpha
1
first
Beta
22
second
中文段落一。
中文段落二。
redgreenyellowbluemagentacyanbright blackbright redbright greenbright white white on red reversepalettetruecolorbolddimitalicunderlinestrikehidden
progress 100%
typpe done