I was wondering how to create permalinks from the following markup using the python label library:
A header
The desired result will be similar to
<span id="a-header"></span> <h1> A header <a class="headerlink" title="Permalink to this headline" href="#a-header">¶</a> </h1> <p>A paragraph</p>
Answer:
Thanks @BlaXpirit ( see answer )
Use the headerid python markdown extension and enter the following:
This generates the following output:
<h1 id="a-header"> A header <a href="#a-header">¶</a> </h1>
Then use some css style to get the general output, for example:
h1 a{visibility:hidden;} h1:hover a{visibility:visible;}
source share