Markdown (.md
) is a markup language, similar to a .txt
file, but with basic in-text
formating elements. Although it can produce similar outputs as a word processor, there are other
benefits that Thoth Tech can leverage.
Thoth Tech will use Markdown as it default documentation standard.
This decision is based on a number of factors:
Many tools are capable of working in Markdown (Dillinger and VS Code are good starting points)
It's simple to specify a file as Markdown. Simply name it with the extension .md
.
The Markdown Guide is an excellent online resource providing at-a-glance formatting examples.
Commonly used formatting options include the following:
Markdown | Result |
---|---|
# H1 |
H1 |
## H2 |
H2 |
### H3 |
H3 |
**bold text** |
bold text |
*italicized text* |
italicized text |
> blockquote |
blockquote |
1. First item |
1. First item |
1. Second item |
2. Second item |
1. Third item |
3. Third item |
- First item |
|
- Second item |
|
- Third item |
|
`code ` |
code |
--- |
|
[Link Name](https://www.markdownguide.org) |
Link Name |
You can generate diagrams and flowcharts from text by using Mermaid.
The Mermaid Live Editor helps you learn Mermaid and debug issues in your Mermaid code. Use it to identify and resolve issues in your diagrams.
To generate a diagram or flowchart, write your text inside the mermaid block:
```mermaid
graph TD
A[Dinner]-->B[Tacos]
A-->C[Noodles]
B-->D[Fulfillment]
C-->D
```
graph TD
A[Dinner]-->B[Tacos]
A-->C[Noodles]
B-->D[Fulfillment]
C-->D
A collapsed content section is used to hide information until a user chooses to reveal it with a click or tap on the summary text. The hidden content is revealed inline. For example, this code:
<details>
<summary>This is the summary text, click me to expand</summary>
This is the detailed text.
You can learn more about expected usage of this approach in the
[Thoth Tech markdown guide](https://github.com/thoth-tech/handbook/blob/main/docs/learning/training/markdown-guide.md).
</details>
results in:
This is the detailed text.
You can learn more about expected usage of this approach in the Thoth Tech markdown guide.
VS Code has built in support for previewing Markdown files.
To open your current tab in Markdown preview, use shift + command + v.
To create a split screen view (allowing you to edit your Markdown file in one screen while previewing in another, side-by-side), press command + k, release the keys, then press v.
To open your current tab in Markdown preview, use shift + ctrl + v.
To create a split screen view (allowing you to edit your Markdown file in one screen while previewing in another, side-by-side), press ctrl + k, release the keys, then press v.