zestedesavoir / zmarkdown

Live demo: https://zestedesavoir.github.io/zmarkdown/
MIT License
224 stars 52 forks source link

[zmarkdown] Allow enforcing shifts (fixes #448) #467

Closed StaloneLab closed 1 year ago

StaloneLab commented 2 years ago

Fixes #448

The solution involves adding an enforce_shift option to the API that can be used to make ZMarkdown follow heading_shift in all cases). This option is recommended, and will be the default behavior in the next major version.

What is done for now is to force heading_shift=2 for HTML contents. This setting is mostly historical, but still needed by zds-site today. Changes are required before the next version.