ML with circles

Mearns Learns

MarkDown CheatSheet

Headings

Use equals sign (=) for H1 and the minus sign (-) for H2 under the heading text.
Alternately use the # key, for H1 to H6. Ctrl + H
There must be a space between the # and the heading text.

Text highlighting

* Emphasis* Ctrl + I
**Strong** Ctrl + B
~~Strike through~~

Paragraphs and line breaks

This is a line that ends with a double space.
It creates a line break.

To create a paragraph, leave a blank line.

Block Quotes and Code

> This is the first level. (Ctrl + Q)

>> This is nested blockquote.

> Back to the first level.

Create a code block with three back tic’s (```) at the start and end Ctrl + K

Dim strErrorMsg as String
Create a code block by starting the line with a tab or with four spaces.

Create a code span by using back tic around the code.

The back tic ( ` ) can be found on the top left of a UK keyboard.

Footnote

A Footnote [^aFootnote], needs matching reference 1 that will be displayed at the bottom of the page 2. For multiline footnotes, indent the subsequent lines.

 [^aFootnote]: This is what a footnote looks like.

 [^bFootnote]: This is what a multiline footnote looks like.
  Second line of the footnote.

Insert a [Hyperlink](https://stackedit.io/ "Optional Title") Ctrl + L

Link to a heading in the document [Headings](#headings) Headings.
The link after the # must be all lowercase.
If there are spaces in the heading use a dash e.g (#my-headings).

Images

Insert a picture ![Alt text](URL "Optional Title that shows as tooltip") Ctrl + G

![300px place holder image](images/markdown_cheatsheet_01.png "Placeholder")

300px place holder image 300px place holder image

Insert a picture with hyperlink to the picture.

[![300px place holder image](images/markdown_cheatsheet_01.png "Placeholder")](images/markdown_cheatsheet_01.png)

300px place holder image 300px place holder image

Lists

- Unordered list Ctrl + U
- Second item

  • Unordered list
  • Second item

or

1. Ordered list Ctrl + O
2. Second item

  1. Ordered list
  2. Second item

Horizontal line

*** Ctrl + R


HTML and CSS

CSS reference <i class="icon-star">&#9733;</i>

HTML reference <b>Hello</b>
Hello.

Markdown inside HTML
Does *not* work well. Use HTML tags instead.

Tables

Markdown Extra has a special syntax for tables, you can specify column alignment with one or two colons. The single colon indicates left and right alignment. The double colons center alignment :

| Unit      | No. of Items |Total Amount  |
| :-- ------| :----------: | ------------:|
| West      | 1            | 1,234 GBP    |
| East      | 4321         | 50 GBP       |
UnitNo. of ItemsTotal Amount
West11,234 GBP
East432150 GBP

Definition Lists

Enter a term and start the next line with a colon followed by a space:

Term 1
: Definition a
: Definition b

Term 2
: Definition c
Term 1
Definition a
Definition b
Term 2
Definition c

ToDo List

Start with a dash (-) and then square brackets with a space [ ] for an unchecked item. For a checked item, add an x in between the brackets [x] instead of a space.

- [x] Write
- [ ] Review
- [ ] Publish
  • Write
  • Review
  • Publish

Heading Ids

Create an id for the heading in the HTML code:

Heading Ids {#heading-id}
-------------------------

It can be linked to using:

[Heading Ids](#heading-id)

Heading Ids

Fenced code blocks

GitHub’s fenced code blocks are supported with Prettify syntax highlighting if the language is specified:

```json
{“file”:
{
“id”: “12345”, “value”: “FileName”
}
}
```

{"file": 
  {
  "id": "12345",
  "value": "FileName"
  }
}

Escape characters

To escape markdown syntax characters, add a backslash in front of the character:

\- Escaped unordered list item 
  • Unescaped ordered list item

- Escaped unordered list item

Comments

Usually, comments in Markdown are just standard HTML comments.
<!-- like this -->
StackEdit extends HTML comments in order to produce useful, highlighted comments in the preview but not in your exported documents.


  1. This is what a footnote looks like. ↩︎

  2. This is what a multiline footnote looks like.
    Second line of the footnote. ↩︎