@@ -9,7 +9,7 @@ _thanks to ~rovnys-ricfer for writing this_
10# Urbit-Flavored Markdown
10# Urbit-Flavored Markdown
12−## overview
12+## Overview
14Urbit-Flavored Markdown (UFM) is a minimal markup language for creating and rendering text documents,
14Urbit-Flavored Markdown (UFM) is a minimal markup language for creating and rendering text documents,
15with a [Markdown](https://en.wikipedia.org/wiki/Markdown)-inspired syntax. It's integrated with the Hoon programming
15with a [Markdown](https://en.wikipedia.org/wiki/Markdown)-inspired syntax. It's integrated with the Hoon programming
@@ -20,7 +20,7 @@ using Hoon's `sail` datatype.
20UFM is stricter than Markdown and generally supports only one syntax for each
20UFM is stricter than Markdown and generally supports only one syntax for each
21type of HTML node that it emits.
21type of HTML node that it emits.
23−### headers
23+### Headers
25Headers in UFM begin with one or more `#` characters, followed by a space. The
25Headers in UFM begin with one or more `#` characters, followed by a space. The
26number of leading `#`s corresponds to the resulting HTML element: `#` yields an
26number of leading `#`s corresponds to the resulting HTML element: `#` yields an
@@ -38,7 +38,7 @@ produces:
39 ##### Header (h5)
39 ##### Header (h5)
43A line beginning with a `-` or `+` followed by a space is interpreted as an
43A line beginning with a `-` or `+` followed by a space is interpreted as an
44element of a list. `-` means unordered list (`<ul>`) and `+` means ordered list
44element of a list. `-` means unordered list (`<ul>`) and `+` means ordered list
@@ -88,7 +88,7 @@ produces:
88 + nested item 1
88 + nested item 1
89 + nested item 2
89 + nested item 2
91−### blockquotes
91+### Blockquotes
93A section of text beginning with `> ` and indented by two spaces yields a
93A section of text beginning with `> ` and indented by two spaces yields a
94`<blockquote>` element. This blockquote can itself turn contain more UFM,
94`<blockquote>` element. This blockquote can itself turn contain more UFM,
@@ -106,7 +106,7 @@ produces:
106> > As Gregor Samsa awoke one morning from uneasy dreams
106> > As Gregor Samsa awoke one morning from uneasy dreams
107 he found himself _transformed_ in his bed into a *monstrous* vermin.
107 he found himself _transformed_ in his bed into a *monstrous* vermin.
109−### code blocks
109+### Code blocks
111By enclosing a block of text in `\`\`\` on their own lines
111By enclosing a block of text in `\`\`\` on their own lines
112before and after the block, the text will be treated as a code block.
112before and after the block, the text will be treated as a code block.
@@ -135,7 +135,7 @@ produces:
135 ((x x) y)))))))
135 ((x x) y)))))))
138−### poems
138+### Poems
140A poem is a section of text with meaningful newlines. Normally in UFM,
140A poem is a section of text with meaningful newlines. Normally in UFM,
141newlines are treated as spaces and do not create a new line of text. If you
141newlines are treated as spaces and do not create a new line of text. If you
@@ -155,7 +155,7 @@ produces:
155 Is moving its slow thighs, while all about it
155 Is moving its slow thighs, while all about it
156 Reel shadows of the indignant desert birds.
156 Reel shadows of the indignant desert birds.
158−### sail expressions
158+### Sail expressions
160It's possible to use Urbit-Flavored Markdown as an HTML-templating language akin to
160It's possible to use Urbit-Flavored Markdown as an HTML-templating language akin to
161PHP, ERB, JSP, or Handlebars templates. This facility derives
161PHP, ERB, JSP, or Handlebars templates. This facility derives
@@ -192,7 +192,7 @@ currently does not apply `<style>` elements or element attributes,
192which are supported in `sail` syntax. Future versions of the publishing
192which are supported in `sail` syntax. Future versions of the publishing
193system will rectify this._
193system will rectify this._
195−### horizontal rules
195+### Horizontal rules
197`---` on its own line produces an `<hr>` element, the 'horizontal rule'.
197`---` on its own line produces an `<hr>` element, the 'horizontal rule'.
198This is rendered as a horizontal line the width of its containing paragraph.
198This is rendered as a horizontal line the width of its containing paragraph.
@@ -208,12 +208,12 @@ Below the line
209 Below the line
209 Below the line
211−### inline markup
211+### Inline markup
213In addition to the above, UFM includes several options for marking up
213In addition to the above, UFM includes several options for marking up
214inline text.
214inline text.
216−##### bold
216+##### Bold
218Enclose some text in asterisks to boldly render it inside a `<b>` element.
218Enclose some text in asterisks to boldly render it inside a `<b>` element.
@@ -227,7 +227,7 @@ produces:\
227> The first rule of tautology club is
227> The first rule of tautology club is
228 *the first rule of tautology club*.
228 *the first rule of tautology club*.
230−##### italics
230+##### Italics
232Surrounding text with `_` on each side will cause it to appear
232Surrounding text with `_` on each side will cause it to appear
233in italics, using an <i> element.
233in italics, using an <i> element.
@@ -241,7 +241,7 @@ produces:
242Bueller? _Bueller?_
242Bueller? _Bueller?_
244−##### double quote
244+##### Double quote
246Text enclosed in double quotes (`"`) will be rendered with
246Text enclosed in double quotes (`"`) will be rendered with
247opening and closing quotes.
247opening and closing quotes.
@@ -254,7 +254,7 @@ produces:\
255"Yes," he said. "That is the way with him."
255"Yes," he said. "That is the way with him."
257−##### backslash escape
257+##### Backslash escape
259A backslash directly before a word (with no spaces) will be interpreted
259A backslash directly before a word (with no spaces) will be interpreted
260as an escape character, causing it to be rendered raw.
260as an escape character, causing it to be rendered raw.
@@ -269,7 +269,7 @@ produces:
269Here is some *bold* text.
269Here is some *bold* text.
270Here is some \*not bold\* text.
270Here is some \*not bold\* text.
272−##### trailing backslash
272+##### Trailing backslash
274A backslash at the end of a line inserts a line break (`<br>`)
274A backslash at the end of a line inserts a line break (`<br>`)
275after that line. This contrasts with the normal UFM behavior of
275after that line. This contrasts with the normal UFM behavior of
@@ -287,7 +287,7 @@ I wonder how long each line
287will be if I put backslashes\
287will be if I put backslashes\
288at the ends of the lines.
288at the ends of the lines.
290−##### inline code literal
290+##### Inline code literal
292Enclosing some text in ``` characters will cause it to be displayed as code,
292Enclosing some text in ``` characters will cause it to be displayed as code,
293inside a <code> element with monospace font and a different background color.
293inside a <code> element with monospace font and a different background color.
@@ -332,7 +332,7 @@ produces:\
3320xdead.beef \
3320xdead.beef \
335−##### url
335+##### Url
337To insert a hyperlink, put the text content of the link in `[]` brackets
337To insert a hyperlink, put the text content of the link in `[]` brackets
338followed by the destination URL in `()` parentheses. Note that the text
338followed by the destination URL in `()` parentheses. Note that the text
@@ -342,9 +342,9 @@ Example:
344A [Hoon `core`](https://urbit.org/docs/hoon/concepts/#-core-object)
344A [Hoon `core`](https://urbit.org/docs/hoon/concepts/#-core-object)
345−is similar to an object in a traditional programming langauge.
345+is similar to an object in a traditional programming language.
347produces:\
347produces:\
349A [Hoon `core`](https://urbit.org/docs/hoon/concepts/#-core-object)
349A [Hoon `core`](https://urbit.org/docs/hoon/concepts/#-core-object)
350−is similar to an object in a traditional programming langauge.
350+is similar to an object in a traditional programming language.