Feb 10, 2022

|

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.

  1. James Madison
  2. James Monroe
  3. John Quincy Adams

Nested Lists

You can create a nested list by indenting one or more list items below another item

  1. First list item
    • First nested list item
      • Second nested list item

Paragraphs

You can create a new paragraph by leaving a blank line between lines of text.


Tables

Column 1Column 2Column 3
ABC
A1B1C1
A2B2C2
A3B3C3