erusev / parsedown-extra

Markdown Extra Extension for Parsedown
MIT License
820 stars 123 forks source link

Add class to code #112

Open ryanapil opened 7 years ago

ryanapil commented 7 years ago
``` {.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 7 years ago

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 7 years ago

@tovic thanks now works a treat! https://blog.ryanapil.uk/article/3/client-side-customisation