Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arminha/mdbook-curly-quotes
mdBook preprocessor that replaces straight quotes with curly quotes
https://github.com/arminha/mdbook-curly-quotes
mdbook mdbook-plugins rust
Last synced: 17 days ago
JSON representation
mdBook preprocessor that replaces straight quotes with curly quotes
- Host: GitHub
- URL: https://github.com/arminha/mdbook-curly-quotes
- Owner: arminha
- License: mpl-2.0
- Created: 2020-05-06T19:57:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-18T05:14:11.000Z (25 days ago)
- Last Synced: 2024-11-19T19:03:24.061Z (24 days ago)
- Topics: mdbook, mdbook-plugins, rust
- Language: Rust
- Homepage:
- Size: 146 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - arminha/mdbook-curly-quotes - mdBook preprocessor that replaces straight quotes with curly quotes (rust)
README
# mdbook-curly-quotes
[![build](https://github.com/arminha/mdbook-curly-quotes/workflows/build/badge.svg)](https://github.com/arminha/mdbook-curly-quotes/actions?query=workflow%3Abuild)
[![dependency status](https://deps.rs/repo/github/arminha/mdbook-curly-quotes/status.svg)](https://deps.rs/repo/github/arminha/mdbook-curly-quotes)
[![Crates.io](https://img.shields.io/crates/v/mdbook-curly-quotes)](https://crates.io/crates/mdbook-curly-quotes)[mdBook](https://github.com/rust-lang/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.
```toml
[book]
title = "Example book"
author = "John Doe"# add the curly-quotes preprocessor
[preprocessor.curly-quotes]
# select renderers
renderer = ["epub"][output.epub]
```More on configuring preprocessors can be found in the [mdBook Documentation](https://rust-lang.github.io/mdBook/format/config.html#configuring-preprocessors).