Jan-Erik Rediger
adde0c8cfb
Roundtripping markdown is actually quite hard. We don't actually require that. All we need is once parsing the markdown to find the right marker and the headings. We then manually generate markdown and all other content can be copied unparsed again.
22 lines
268 B
Markdown
22 lines
268 B
Markdown
# Chapter
|
|
|
|
* [Header 1](#header-1)
|
|
* [Header 1.1](#header-11)
|
|
* [Header 2](#header-2)
|
|
* [Header 2.1](#header-21)
|
|
* [Header 2.2](#header-22)
|
|
* [Header 2.2.1](#header-221)
|
|
|
|
# Header 1
|
|
|
|
## Header 1.1
|
|
|
|
# Header 2
|
|
|
|
## Header 2.1
|
|
|
|
## Header 2.2
|
|
|
|
### Header 2.2.1
|
|
|