parent
9a9288085f
commit
eeec295a78
16
README.md
16
README.md
|
@ -34,7 +34,9 @@ Finally, build your book as normal:
|
||||||
mdbook path/to/book
|
mdbook path/to/book
|
||||||
```
|
```
|
||||||
|
|
||||||
## Custom TOC marker
|
## Configuration
|
||||||
|
|
||||||
|
### Custom TOC marker
|
||||||
|
|
||||||
The default marker is:
|
The default marker is:
|
||||||
|
|
||||||
|
@ -42,7 +44,7 @@ The default marker is:
|
||||||
<!-- toc -->
|
<!-- toc -->
|
||||||
```
|
```
|
||||||
|
|
||||||
If you wish to use a different, such as the GitLab marker `[[_TOC_]]`, you must add the following settings to your `book.toml`.
|
If you wish to use a different marker, such as the GitLab marker `[[_TOC_]]`, you must add the following settings to your `book.toml`.
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[preprocessor.toc]
|
[preprocessor.toc]
|
||||||
|
@ -71,6 +73,16 @@ marker = """* auto-gen TOC;
|
||||||
{:toc}"""
|
{:toc}"""
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Maximum header level
|
||||||
|
|
||||||
|
By default the ToC will include headings up to level 4 (`####`).
|
||||||
|
This can be configured in your `book.toml` as follows:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[preprocessor.toc]
|
||||||
|
max-level = 4
|
||||||
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
MPL. See [LICENSE](LICENSE).
|
MPL. See [LICENSE](LICENSE).
|
||||||
|
|
Loading…
Reference in a new issue