Unique (user-configured) linenum anchors for Code Blocks #2258
-
Hi all,
The problem I am having is that It would be cool to be use either random ID to avoid clashes, or let the user to define it. |
Beta Was this translation helpful? Give feedback.
Answered by
facelessuser
Dec 2, 2023
Replies: 1 comment 1 reply
-
Static IDs are already possible, just attach an ID to your code block:
<div id="myid" class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><code><span id="__codeline-myid-1"><span class="kn">import</span> <span class="nn">bar</span>
</span></code></pre></div></td></tr></table></div> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
facelessuser
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Static IDs are already possible, just attach an ID to your code block: