Markdown Syntax Sample
Reference: Github - Basic writing and formatting syntax
Headings
H1
H2
H3
H4
H5
H6
Styling text
Bold
Italic
Strikethrough
Bold and nested italic
All bold and italic
Quoting text
Text that is a quote
Quoting code
Code block
To format code or text into its own distinct block, use triple backticks.
let attributes: [NSAttributedString.Key: Any] = [
.font: UIFont.systemFont(ofSize: 12.0, weight: .regular),
.foregroundColor: UIColor.gray,
.paragraphStyle: paragraphStyle
]
Inline code
Inline code can be formatted by using a pair of backticks, just like: .paragraphStyle
Links
Check more information at PaletteTheme.
Lists
You can make an unordered list by preceding one or more lines of text with - or *.
- George Washington
- John Adams
- Thomas Jefferson
To order your list, precede each line with a number.
- James Madison
- James Monroe
- John Quincy Adams
Nested Lists
You can create a nested list by indenting one or more list items below another item
- First list item
- First nested list item
- Second nested list item
- First nested list item
Paragraphs
You can create a new paragraph by leaving a blank line between lines of text.
Tables
Column 1 | Column 2 | Column 3 |
---|---|---|
A | B | C |
A1 | B1 | C1 |
A2 | B2 | C2 |
A3 | B3 | C3 |