Git Product home page Git Product logo

Comments (6)

BsNoSi avatar BsNoSi commented on July 16, 2024 1

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.

grahamegrieve avatar grahamegrieve commented on July 16, 2024

so what's the actual issue? Do you have a test case?

from delphi-markdown.

mriscoc avatar mriscoc commented on July 16, 2024

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.

grahamegrieve avatar grahamegrieve commented on July 16, 2024

well, maybe. What is common mark doing?

from delphi-markdown.

grahamegrieve avatar grahamegrieve commented on July 16, 2024

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.

BsNoSi avatar BsNoSi commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.