- Mac
brew install mdbook
mdbook
Creating a book
mdbook init my-book
Do you want a .gitignore to be created? (y/n)
y
What title would you like to give the book?
My Book
2022-02-01 09:35:54 [INFO] (mdbook::book::init): Creating a new book with stub content
cd my-book
mdbook serve
## start and open web browser
mdbook serve --open
book.toml
[book]
authors = ["your name"]
language = "en"
multilingual = false
src = "src"
title = "My Book"
SUMMARY.md: A list of all chapters in the book. src/SUMMARY.md
# Summary
- [Chapter 1](./chapter_1.md)
Append the following line to SUMMARY.md
- [Chapter 2](./chapter_2.md)
# Summary
- [Chapter 1](./chapter_1.md)
- [Chapter 2](./chapter_2.md)
Refresh the web browser
Open chapter_1.md with your text editor
-
Header
Append the following line to chapter_1.md
## Header
-
New line
Append the following line to chapter_1.md
first line second line
first line[enter two spaces]
-
Unordered list
Append the following line to chapter_1.md
- first bullet - second bullet
-
Ordered list
Append the following line to chapter_1.md
1. first item 2. second item
-
Code
Append the following line to chapter_1.md
`code`
-
Bold text
Append the following line to chapter_1.md
**bold text**
-
Image
Append the following line to chapter_1.md
![markdown](https://alternativetoapp.com/wp-content/uploads/2020/05/mdbook_158088.png)
-
Link
Append the following line to chapter_1.md
[Markdown Cheat Sheet](https://www.markdownguide.org/cheat-sheet/)
e.g. chapter_1.md
# Chapter 1
## Header
first line
second line
- first bullet
- second bullet
1. first item
2. second item
`code`
**bold text**
![markdown](https://alternativetoapp.com/wp-content/uploads/2020/05/mdbook_158088.png)
[Markdown Cheat Sheet](https://www.markdownguide.org/cheat-sheet/)