Add class to code
ryanapil opened this issue · comments
ryanapil commented
``` {.hljs .css}
div.code {
selector: value;
} ```
this doesn't return as expect, using the demo the php markdown extra works as intended but the parsedown just displays the {} as content
Taufik Nurrohman commented
My ParsedownExtraPlugin
extension has this feature. Check the test file: https://github.com/tovic/parsedown-extra-plugin/blob/master/test/test.blockCodeAttributes.php
ryanapil commented
@tovic thanks now works a treat! https://blog.ryanapil.uk/article/3/client-side-customisation