From 8b290479df0c97e55d4096e6523d340e9c775d5c Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Thu, 31 Mar 2022 15:47:05 +0200 Subject: fix: smart quotes sometimes doubled with md emphasis disable smartquotes at sphinx level to enable it at MyST level. --- conf.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/conf.py b/conf.py index dac72ad..58df011 100644 --- a/conf.py +++ b/conf.py @@ -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 ------------------------------------------------- -- cgit v1.2.3