nbconvert icon indicating copy to clipboard operation
nbconvert copied to clipboard

feat: add NumberedHeadingsPreprocessor

Open sapristi opened this issue 1 year ago • 3 comments

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

sapristi avatar Oct 19 '24 12:10 sapristi

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.

krassowski avatar Jan 28 '25 09:01 krassowski

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.

sapristi avatar Jan 30 '25 12:01 sapristi

nice work, thank you @sapristi !

paolovic avatar Mar 12 '25 09:03 paolovic