Comments (6)
Wouldn't it be easier to do something like this:
## Headline with ID
→ becomes →
<h2 id="headline-with-id">Headline with ID</h2>
this is generic and quite easy to deal with because the headline itself is the ID.
from delphi-markdown.
so what's the actual issue? Do you have a test case?
from delphi-markdown.
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
from delphi-markdown.
well, maybe. What is common mark doing?
from delphi-markdown.
https://talk.commonmark.org/t/anchors-in-markdown/247. Per the first example. I'll implement it when I get a chance
from delphi-markdown.
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 :[jumpto]
which would be close to footnote/image reference design.
from delphi-markdown.
Related Issues (16)
- Range check error HOT 4
- "@" replaced with "(" in email addresses HOT 2
- VCL Tester HOT 1
- line with open tag hangs HOT 1
- MarkDownTests.dproj issues HOT 2
- Non-breaking space after emphasis delimiter seemingly breaks parsing.
- Different conversion from DaringFireball and Commonmark compared to Gith-Hub
- Range Check Error when a number follows a numbered list.
- Remove the dependency on the LazUTF8 module
- Missing reaction on two spaces at end of line HOT 2
- Incorrect list convertion HOT 5
- Infinite loop and out of memory error HOT 4
- Space in local links breaks mardown parsing HOT 3
- Code ``` HOT 3
- Why adding TLocation type? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delphi-markdown.