pegdown
pegdown copied to clipboard
Are there plans to support the addition of HTML attributes - e.g. "class" ?
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?
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.
+1