# mdbook-asciidoc A backend for [mdbook](https://github.com/rust-lang/mdBook) that outputs [AsciiDoc](https://docs.asciidoctor.org/asciidoc/latest/). ## Installation To use, install the tool ```sh cargo install mdbook-asciidoc ``` and add it as a backend in `book.toml`: ```toml [preprocessor.asciidoc] ``` ## Configuration The following configuration values can be set in `book.toml`. | Name | Type |Default| Description | |------------------|---------|-------|------------------------------------------------------------------------------| | `allow-asciidoc` | boolean | false | Cope with some AsciiDoc constructs included in the Markdown source when set. | | `heading-offset` | integer | 0 | Extra offset to apply to heading levels. | | `skip-chapters` | string | "" | Comma-separated list of filenames to ignore when generating AsciiDoc. | ### AsciiDoc Passthrough When the `allow-asciidoc` config option is set, AsciiDoc in the source document can be included as the `content` attribute of an `` HTML-like tag, to prevent it being interpreted by Markdown. For example, four underscores are used in AsciiDoc to delimit block quotations, but would also be interpreted as a horizontal rule in Markdown if not escaped: ```html ```