sirthias / pegdown

A pure-Java Markdown processor based on a parboiled PEG parser supporting a number of extensions
http://pegdown.org
Apache License 2.0
1.29k stars 218 forks source link

Are there plans to support the addition of HTML attributes - e.g. "class" ? #150

Open KITSKevinBonett opened 9 years ago

KITSKevinBonett commented 9 years ago

We use FastClick to disable the default click delay on HTML anchors on touch devices.

However, there is a known issue if the anchor is tracked by Adobe SiteCatalyst, such that anchors (external) have to be clicked twice - https://github.com/ftlabs/fastclick/issues/141

The FastClick docs mention that adding a "needsclick" class to an element (e.g. anchor) will disable the plugin, therefore allowing native behaviour on click. This should result in a single click if the link is being tracked.

Are there any plans to allow adding class names to HTML elements?

wham commented 8 years ago

PHP Markdown Extra is using special attributes for this. Since PegDown has implemented several PHP Markdown Extra features already, it would be cool to have this one too.

lsamayoa commented 7 years ago

+1