Coder Social home page Coder Social logo

Parse header IDs with colons about kramdown HOT 7 CLOSED

gettalong avatar gettalong commented on August 30, 2024
Parse header IDs with colons

from kramdown.

Comments (7)

 avatar commented on August 30, 2024

You cannot use a Span IAL with a Block-Level Element AKA <h1>

kramdown.rubyforge.org/syntax.html#inline-attribute-lists

Proper syntax

$ cat foo.md
{:#with:colon}
# Header

$ kramdown foo.md
<h1 id="with:colon">Header</h1>

from kramdown.

MattiSG avatar MattiSG commented on August 30, 2024

This is not an IAL, this is a Header ID. Notice there is no colon between the opening curly bracket and the hash :)

Le 9 août 2013 à 01:00, Steven Penny [email protected] a écrit :

You cannot use a Span IAL with a Block-Level Element AKA

kramdown.rubyforge.org/syntax.html#inline-attribute-lists

Proper syntax

$ cat foo.md
{:#with:colon}

Header

$ kramdown foo.md

Header


Reply to this email directly or view it on GitHub.

from kramdown.

gettalong avatar gettalong commented on August 30, 2024

Thanks for finding this bug! Using a header ID and an IAL should definitely work the same, so I will add support for the colon to the header ID.

from kramdown.

gettalong avatar gettalong commented on August 30, 2024

Implemented.

from kramdown.

MattiSG avatar MattiSG commented on August 30, 2024

Cool, thanks!

Any ETA on this being available on RubyGems? :)

from kramdown.

gettalong avatar gettalong commented on August 30, 2024

I would like to incorporate one more patch and then release a new version, so probably this week.

from kramdown.

MattiSG avatar MattiSG commented on August 30, 2024

Great, thanks Thomas! :)

Le 27 août 2013 à 07:44, Thomas Leitner [email protected] a écrit :

I would like to incorporate one more patch and then release a new version, so probably this week.


Reply to this email directly or view it on GitHub.

from kramdown.

Related Issues (20)

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.