Markdown Support
Markdown in Runbooks
Section titled “Markdown in Runbooks”Runbooks uses GitHub-flavored Markdown (GFM) with full support for common markdown elements. That means you can include any of the following elements in your runbooks.
Supported Elements
Section titled “Supported Elements”Headers
Section titled “Headers”# Header 1## Header 2### Header 3#### Header 4##### Header 5###### Header 6Text Formatting
Section titled “Text Formatting”**Bold text***Italic text****Bold and italic***~~Strikethrough~~`Inline code`Unordered lists:
- Item 1- Item 2 - Nested item - Another nested item- Item 3Ordered lists:
1. First item2. Second item3. Third item 1. Nested numbered itemTask lists:
- [x] Completed task- [ ] Incomplete task- [ ] Another task[Link text](https://example.com)[Link with title](https://example.com "Title text")Autolinks
Section titled “Autolinks”URLs and email addresses are automatically converted to clickable links:
Visit https://gruntwork.io for more info.Contact support@example.com for help.Images
Section titled “Images”Images are resolved relative to the runbook file location.
Code Blocks
Section titled “Code Blocks”Inline code:
Use the `npm install` command to install dependencies.Code blocks with syntax highlighting:
```bashecho "Hello, world!"```
```pythondef hello(): print("Hello, world!")```
```javascriptconsole.log("Hello, world!");```Supported languages include: bash, sh, shell, python, javascript, typescript, go, rust, java, terraform, hcl, yaml, json, and many more.
Blockquotes
Section titled “Blockquotes”> This is a blockquote.> It can span multiple lines.>> And have multiple paragraphs.Horizontal Rules
Section titled “Horizontal Rules”---***___Tables
Section titled “Tables”| Header 1 | Header 2 | Header 3 ||----------|----------|----------|| Cell 1 | Cell 2 | Cell 3 || Cell 4 | Cell 5 | Cell 6 |With alignment:
| Left-aligned | Center-aligned | Right-aligned ||:-------------|:--------------:|--------------:|| Left | Center | Right |Footnotes
Section titled “Footnotes”Here is a sentence with a footnote.[^1]
[^1]: This is the footnote content.Footnotes are collected and rendered at the bottom of the document.
MDX Features
Section titled “MDX Features”Because Runbooks supports MDX, you also have access to a few special features beyond standard markdown elements.
Mix Markdown and JSX
Section titled “Mix Markdown and JSX”# My Runbook
Regular markdown text here.
<Admonition type="info" title="Note" description="This is a React component!" />
More markdown text.Use JavaScript Expressions
Section titled “Use JavaScript Expressions”Today's date: {new Date().toLocaleDateString()}You can use HTML directly in markdown:
<div style="color: red;">This text will be red.</div>Escaping Special Characters
Section titled “Escaping Special Characters”If you need to display special characters literally, escape them with a backslash:
\* This won't be italic\# This won't be a header\`This won't be code\`Code Blocks in Special Blocks
Section titled “Code Blocks in Special Blocks”When embedding YAML or other code in special blocks, use proper fencing:
<BoilerplateInputs id="my-form">```yamlvariables: - name: Example type: string\```</BoilerplateInputs>Note: Use a backslash before the closing triple backticks to escape them within the outer code block.