diff options
author | n-peugnet <n.peugnet@free.fr> | 2022-03-31 15:47:05 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2022-03-31 15:47:05 +0200 |
commit | fb88a93466c5dfa4c3a8fb12d048d8478a8fc643 (patch) | |
tree | 3b0caa3ad840f38576cd1625a70d8e5390dcb443 | |
parent | a7b828e5de24b6496dbfa148f4474f0315ca4b8f (diff) | |
download | club1-docs-fb88a93466c5dfa4c3a8fb12d048d8478a8fc643.tar.gz club1-docs-fb88a93466c5dfa4c3a8fb12d048d8478a8fc643.zip |
fix: smart quotes sometimes doubled with md emphasisn-peugnet-fix-smartquotes
disable smartquotes at sphinx level to enable it at MyST level.
-rw-r--r-- | conf.py | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -33,9 +33,15 @@ extensions = [ 'sphinx.ext.imgconverter', ] -# Allow to create implicit reference to headings. +# Allow to create implicit reference to headings up to level 6. # See: https://docs.readthedocs.io/en/stable/guides/cross-referencing-with-sphinx.html#implicit-targets -myst_heading_anchors = 2 +myst_heading_anchors = 6 + +# Enable Some MyST extensions. +myst_enable_extensions = [ + # Enable smart quotes at MyST level. + 'smartquotes', +] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -72,6 +78,9 @@ exclude_patterns = [ # Increase PNG image resolution. image_converter_args = ['-density', '400', '-resize', '200%'] +# Disable smart quotes at Sphinx level, as it is done by MyST. +smartquotes = False + # -- Options for HTML output ------------------------------------------------- |