Markdown is a plain text markup format created by John Gruber.
Following is a markdown guide to help you get started with TSMarkMail.
To test the various markdown elements, copy and paste the code from the Markdown Example of each section below into a Google Document with TSMarkMail installed and give it a try!
Line Breaks and Spacing Matter
<Enter>
key in the Google document to create a new lineNeed More Space?
<br>
elements to the markdown content if you need additional element separation in the rendered emailSome markdown elements may not render as expected in all email clients
BEST PRACTICE: Test Emails Before Sending in Production!
Enter paragraph text by typing it into the Google Document.
Markdown Example:
This is paragraph text.
Renders in Email As:
Create emphasis by surrounding text with special symbols.
To render text as Bold, surround text in:
**
__
To render text as Italics, surround text in:
*
_
To render text in Bold Italics, surround text in:
***
___
To render text as Strikethrough, surround text in:
~~
Markdown Example:
Here is **Bold Text**.
Here is *Italic Text*.
Here is ***Bold Italic Text***.
Here is ~~Strikethrough Text~~.
Renders in Email As:
There are six levels of headings possible in markdown. Create a heading by typing the #
symbol followed by a space character and the heading text. (Enter the number of #
symbols per heading level.)
Markdown Example:
# I Am a Level 1 Heading
## I Am a Level 2 Heading
### I Am a Level 3 Heading
#### I Am a Level 4 Heading
##### I Am a Level 5 Heading
###### I Am a Level 6 Heading
Renders in Email As:
#
symbol and the first character of the heading text.Create a blockquote by typing a >
symbol followed by a space character and the blockquote text. Blockquotes can also be nested by typing consecutive >
symbols.
Markdown Example:
> This is a blockquote.
> This is another ...
>> nested blockquote.
Renders in Email As:
>
symbol and the first character of the blockquote text.Markdown supplies both Ordered and Unordered lists.
Ordered List:
Type the item number followed by a .
symbol, a space character and then the item text. Each list item can also be numbered with 1.
and the correct list number will be rendered. Lists can be nested by including two space character indention.
Unordered List:
Type a *
, -
or +
symbol followed by a space character and then the item text. Lists can be nested by including two space character indention.
Automatic bulleted and numbered list mode was added to Google Docs. This will cause a problem for markdown lists, so be sure to disable this feature before entering markdown content.
To disable automatic bulleted and numbered list mode:
Tools
> Preferences
menuMarkdown Example:
**Ordered List:**
1. One
2. Two
3. Three
**Alternate Ordered List:**
1. One
1. Two
1. Three
**Nested Ordered List:**
1. One
2. Two
3. Three
1. Nested
2. Ordered
3. List
---
**Unordered Asterisk List:**
* One
* Two
* Three
**Unordered Plus List:**
+ One
+ Two
+ Three
**Unordered Dash List:**
- One
- Two
- Three
**Nested Unordered List:**
* One
* Two
* Three
+ Nested
+ Unordered
+ List
Renders in Email As:
Create a horizontal rule (lined break) by typing:
___
---
***
Markdown Example:
___
---
***
Renders in Email As:
Add links by typing link text enclosed in []
symbols followed by the full link url enclosed in ()
symbols.
Example: [Link Text](http://someurl)
Example with link title: [Link Text](http://someurl "Link Title")
Markdown Example:
* [Google Drive](https://drive.google.com/start)
* [Google Drive](https://drive.google.com/start "About Google Drive")
Renders in Email As:
[]
and at least one space character after ()
.[]
and ()
.TSmarkMail allows two types of images:
1) Images Included Directly in Google Document:
Add images directly to the Google Document using the document Insert
> Image
menu. NOTE: DO NOT enter any image markdown for included images. (TSMarkMail will automatically include these images in the sent email.)
Renders in Email As:
2) Externally Referenced Images using Image Markdown:
Add externally referenced images by typing a !
symbol followed by the image alt text enclosed in []
symbols followed by the full url of the external image enclosed in ()
symbols.
![Image Alt Text](http://someimageurl)
Markdown Example:
## Method 2: Externally Referenced Image
![TSMarkMail](http://techstreams.github.io/tsmarkmail/images/ts.png)
Renders in Email As:
[]
and at least one space character after ()
.[]
and ()
.Test emails before sending in production!
Tables can be created by adding pipe dividers (|
symbol) between each table cell.
Table Header vs Table Body - separate table header row from table body rows by adding a row of cells containing dashes
Text Alignment Within Table Column - include colon :
symbols within the dash row to define left-aligned, right-aligned, or center-aligned text in table body cells
Inline Markdown - table cell text can include inline markdown such as links, bold, italics, or strikethrough
Markdown Example:
| Column 1 | Column 2 |
| ------ | ----------- |
| row 1 | some text |
| row 2 | some more text |
| row 3 | some additional text |
---
| Left Align | Center Align | Right Align |
| :------ | :-----------: | ---------: |
| row 1 | some text | $600 |
| row 2 | some more text | $500 |
| row 3 | some additional text | $400 |
---
| Left Align | Center Align | Right Align |
| :------ | :-----------: | ---------: |
| row 1 | **some bold text** | $600 |
| row 2 | *some italic text* | $500 |
| row 3 | ~~some strikethrough text~~ | $400 |
Renders in Email As:
|
symbol and the table cell text.Code snippets can be included in markdown.
Inline Code - wrap inline code with backtick `
symbols
Indented Code - indent code blocks with 4 space characters
Fenced Code Blocks - wrap code with backtick ```
symbols to create a multi-line block of code
Markdown Example:
**"Inline" code:** `var x = 1;` **Indented code block:** // A Comment var x = 1; var y = 2; var z = x + y; **Fenced code block:** ``` // A Comment var x = 1; var y = 2; var z = x + y; ```
Renders in Email As: