This question was asked of quarto in R two years ago:
Why Quarto TOC is not recoqnising markdown headers?
However, I now have the same question using a Python Jupyter Notebook. I tried initially doing something like this:
display(Markdown(f"# {program_nm}"))
But this does not get added to the table of contents. Then, I tried emulating the response above. I included #| results: 'asis'
in my code chunk, and then I even tried display(HTML("<h1 id='quarto-header'>Overview</h1>"))
, but neither option worked.
Is there any way around this?