feat: add NumberedHeadingsPreprocessor
Fixes #1586
Add pre-processor that adds numbering to markdown headers:
transforms title in markdown cells, such that e.g.
# title
## subtitle
content
# other title
turns into
# 1 title
## 1.1 subtitle
content
# 2 other title
Thank you @sapristi for sending the PR. Was this requested in an issue before? Just trying to understand if there is sufficient community need for this to live in nbconvert given the maintenance costs for adding a new pre-processor.
Hello, I just checked, it seems that some people were interested in this as well, e.g. https://github.com/jupyter/nbconvert/issues/1586
IMO this is a very essential feature for working with a document - it's also a feature provided in the Jupyter web UI, so I think I'm not the only one.
nice work, thank you @sapristi !