hackmdio / codimd

CodiMD - Realtime collaborative markdown notes on all platforms.
https://hackmd.io/c/codimd-documentation
GNU Affero General Public License v3.0
9.24k stars 1.05k forks source link

numbersections #1788

Open zhihaoy opened 1 year ago

zhihaoy commented 1 year ago

I hope to be able to automatically number sections, h2 -> 1., h3 -> 1.1., by setting

numbersections: true

in YAML. These numbers should affect how the titles are displayed in TOC, but not affect their anchor names (so that you can reference them by their stable names).

jackycute commented 1 year ago

Hi @zhihaoy, PR is welcomed!