kzykhys / Ciconia

A New Markdown parser for PHP5.4
http://ciconia.kzykhys.com/
MIT License
355 stars 31 forks source link

Adding language class to code tags as recommended by HTML5 specs #48

Open mfeltscher opened 9 years ago

mfeltscher commented 9 years ago

Specifications by W3C recommend to add a class to the code tag to indicate the language being used. Several code highlighting libraries, such as Prism or highlight.js, use this declaration to determine which language is being used. Specifications can be found here: http://www.w3.org/TR/html5/text-level-semantics.html#the-code-element

DavidBadura commented 9 years ago

i need this :+1:

mfeltscher commented 9 years ago

@DavidBadura Nice to hear, unfortunately it seems like this project no longer gets maintained. Any idea which fork is still getting maintained so I could apply my change there?

DavidBadura commented 9 years ago

sorry for the late answer. until now there is no such fork but someone should create a fork. do you want to maintain it? :-P

mfeltscher commented 9 years ago

@DavidBadura I'm not sure if I find the time to maintain a fork. I guess there are other forks around which I could apply my pull request to. Could you have a look at all the forks and let me know, which would suit your needs best? :)