Skip to content

Commit

Permalink
Enable smart punctuation (#1192)
Browse files Browse the repository at this point in the history
Turns `--` and `---` to ndash and mdash, respectively, and automatically
inserts paired quotation marks; see
https://rust-lang.github.io/mdBook/format/markdown.html#smart-punctuation.

Note that the option is called `curly-quotes` in the version of mdbook
we use. In later versions it's called `smart-punctuation`.
  • Loading branch information
VojtechStep authored Oct 9, 2024
1 parent 448201a commit b384b14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ follow-web-links = false
[output.html]
default-theme = "light"
preferred-dark-theme = "Ayu"
# The following option is renamed to smart-punctuation in mdbook 0.4.38
curly-quotes = true
copy-fonts = true
additional-css = [
"website/css/Agda.css",
Expand Down

0 comments on commit b384b14

Please sign in to comment.