pegdown icon indicating copy to clipboard operation
pegdown copied to clipboard

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

Open KITSKevinBonett opened this issue 10 years ago • 2 comments

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?

KITSKevinBonett avatar Feb 10 '15 11:02 KITSKevinBonett

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.

wham avatar Mar 19 '16 22:03 wham

+1

lsamayoa avatar Nov 09 '16 18:11 lsamayoa