项目作者: arminha

项目描述 :
mdBook preprocessor that replaces straight quotes with curly quotes
高级语言: Rust
项目地址: git://github.com/arminha/mdbook-curly-quotes.git
创建时间: 2020-05-06T19:57:03Z
项目社区:https://github.com/arminha/mdbook-curly-quotes

开源协议:Mozilla Public License 2.0

下载


mdbook-curly-quotes

build
dependency status
Crates.io

mdBook preprocessor that replaces straight quotes with curly quotes, except within code blocks or code spans.

It does the same as the curly-quotes option of the mdBook HTML renderer. The only advantage is that it can be applied to any renderer.

Usage

The following example configures mdbook-curly-quotes as a preprocessor for the epub renderer.

  1. [book]
  2. title = "Example book"
  3. author = "John Doe"
  4. # add the curly-quotes preprocessor
  5. [preprocessor.curly-quotes]
  6. # select renderers
  7. renderer = ["epub"]
  8. [output.epub]

More on configuring preprocessors can be found in the mdBook Documentation.