-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting the id for headings #7
Comments
so what's the actual issue? Do you have a test case? |
Test Case for Txtmark extensions: Text anchors ## Headline with ID ## {#headid}
Another headline with ID {#headid2}
------------------------
* List with ID {#listid}
Links: [Foo] (#headid) This should produce: <h2 id="headid">Headline with ID</h2>
<h2 id="headid2">Another headline with ID</h2>
<ul>
<li id="listid">List with ID</li>
</ul>
<p>Links: <a href="#headid">Foo</a></p> The IDs are not inserted into the tags |
Wouldn't it be easier to do something like this:
this is generic and quite easy to deal with because the headline itself is the ID. |
well, maybe. What is common mark doing? |
https://talk.commonmark.org/t/anchors-in-markdown/247. Per the first example. I'll implement it when I get a chance |
As far as I can see https://talk.commonmark.org/t/anchors-in-markdown/247 gives no final decision on that. Several compilers implicitly generate headline IDs by text (my example). But there is still an option vor anchors missing. I'd prefer something like |
The text was updated successfully, but these errors were encountered: