Basedoc Docs

Search...
K
Creating content

Markdown

Markdown is a lightweight markup language with a plain text formatting syntax.

It is designed so that it can be converted to HTML and many other formats.

Markdown powers all of the written content in Basedoc projects. It is easy to work with on your computer, sync to GitHub, and publish to the web.

LLMs also love Markdown, so keeping your content in Markdown makes it easy to use around the internet, even outside the Basedoc platform.

Markdown files in your project can have either the .md or .mdx extension (if you want to insert components into your Markdown pages, you must use .mdx files).

Formatting text

Headers

Markdown
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

Paragraphs

Separate paragraphs with a blank line.

Markdown
This is a paragraph.

This is another paragraph.

To make single line breaks, add two spaces at the end of the line above.

Markdown
This is a line with a single line break.  
This is another line.

This is a line with a single line break.
This is another line.

Bold text

Markdown
**Bold text**

Bold text

Italic text

Markdown
_Italic text_

Italic text

Markdown
[Link text](https://www.example.com)

Link text

Markdown
[Link to the Config page](/config)

Link to the Config page

Lists

Ordered list:

Markdown
1. List item 1
2. List item 2
3. List item 3
  1. List item 1
  2. List item 2
  3. List item 3

Unordered list:

Markdown
- List item 1
- List item 2
- List item 3

or

Markdown
* List item 1
* List item 2
* List item 3
  • List item 1
  • List item 2
  • List item 3

Images

Markdown
![Image alt text](https://www.example.com/image.png)

Blockquotes

Add a > at the beginning of every line inside a blockquote.

Markdown
> This is a blockquote.
>
> This is a second paragraph in the blockquote.

This is a blockquote.

This is a second paragraph in the blockquote.

Code blocks

Markdown
```javascript
const example = "Hello, world!";
console.log(example);
```

```javascript hello-world.js
const example = "Hello, world!";
console.log(example);
```
JavaScript
const example = "Hello, world!";
console.log(example);
JavaScripthello-world.js
const example = "Hello, world!";
console.log(example);

Tables

Markdown
| Header 1 | Header 2 | Header 3 |
|----------|----------|----------|
| Cell 1   | Cell 2   | Cell 3   |
| Cell 4   | Cell 5   | Cell 6   |
Header 1Header 2Header 3
Cell 1Cell 2Cell 3
Cell 4Cell 5Cell 6

© Basedoc Docs

Powered by Basedoc