<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEdocument SYSTEM "CommonMark.dtd"><documentxmlns="http://commonmark.org/xml/1.0"><headinglevel="1"><textxml:space="preserve">README</text></heading></document>
$ comrak --header-id-prefix user-content- -t commonmark -t xml
#README
README
<h1id="user-content-readme">README<ahref="#readme"aria-label="Link to heading 'README'"data-heading-content="README"class="anchor"></a></h1>
#README
<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEdocument SYSTEM "CommonMark.dtd"><documentxmlns="http://commonmark.org/xml/1.0"><headinglevel="1"><textxml:space="preserve">README</text></heading></document>
$ comrak --header-id-prefix "" -t commonmark -t xml
#README
README
<h1id="readme">README<ahref="#readme"aria-label="Link to heading 'README'"data-heading-content="README"class="anchor"></a></h1>
#README
<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEdocument SYSTEM "CommonMark.dtd"><documentxmlns="http://commonmark.org/xml/1.0"><headinglevel="1"><textxml:space="preserve">README</text></heading></document>
$ comrak --header-id-prefix user-content- -t commonmark -t xml
#Hi.##Hi 1.###Hi.####Hello.#####Hi.######Hello.#Isn't it grand?
Hi.
Hi 1.
Hi.
Hello.
Hi.
Hello.
Isn't it grand?
<h1id="user-content-hi">Hi.<ahref="#hi"aria-label="Link to heading 'Hi.'"data-heading-content="Hi."class="anchor"></a></h1><h2id="user-content-hi-1">Hi 1.<ahref="#hi-1"aria-label="Link to heading 'Hi 1.'"data-heading-content="Hi 1."class="anchor"></a></h2><h3id="user-content-hi-2">Hi.<ahref="#hi-2"aria-label="Link to heading 'Hi.'"data-heading-content="Hi."class="anchor"></a></h3><h4id="user-content-hello">Hello.<ahref="#hello"aria-label="Link to heading 'Hello.'"data-heading-content="Hello."class="anchor"></a></h4><h5id="user-content-hi-3">Hi.<ahref="#hi-3"aria-label="Link to heading 'Hi.'"data-heading-content="Hi."class="anchor"></a></h5><h6id="user-content-hello-1">Hello.<ahref="#hello-1"aria-label="Link to heading 'Hello.'"data-heading-content="Hello."class="anchor"></a></h6><h1id="user-content-isnt-it-grand">Isn't it grand?<ahref="#isnt-it-grand"aria-label="Link to heading 'Isn't it grand?'"data-heading-content="Isn't it grand?"class="anchor"></a></h1>
#Hi.##Hi 1.###Hi.####Hello.#####Hi.######Hello.#Isn't it grand?
<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEdocument SYSTEM "CommonMark.dtd"><documentxmlns="http://commonmark.org/xml/1.0"><headinglevel="1"><textxml:space="preserve">Hi.</text></heading><headinglevel="2"><textxml:space="preserve">Hi 1.</text></heading><headinglevel="3"><textxml:space="preserve">Hi.</text></heading><headinglevel="4"><textxml:space="preserve">Hello.</text></heading><headinglevel="5"><textxml:space="preserve">Hi.</text></heading><headinglevel="6"><textxml:space="preserve">Hello.</text></heading><headinglevel="1"><textxml:space="preserve">Isn't it grand?</text></heading></document>
$ comrak --header-id-prefix user-content- -t commonmark -t xml
#a#a#a-1#a
a
a
a-1
a
<h1id="user-content-a">a<ahref="#a"aria-label="Link to heading 'a'"data-heading-content="a"class="anchor"></a></h1><h1id="user-content-a-1">a<ahref="#a-1"aria-label="Link to heading 'a'"data-heading-content="a"class="anchor"></a></h1><h1id="user-content-a-1-1">a-1<ahref="#a-1-1"aria-label="Link to heading 'a-1'"data-heading-content="a-1"class="anchor"></a></h1><h1id="user-content-a-2">a<ahref="#a-2"aria-label="Link to heading 'a'"data-heading-content="a"class="anchor"></a></h1>
#a#a#a-1#a
<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEdocument SYSTEM "CommonMark.dtd"><documentxmlns="http://commonmark.org/xml/1.0"><headinglevel="1"><textxml:space="preserve">a</text></heading><headinglevel="1"><textxml:space="preserve">a</text></heading><headinglevel="1"><textxml:space="preserve">a-1</text></heading><headinglevel="1"><textxml:space="preserve">a</text></heading></document>