Closed rmmanseau closed 2 years ago
Thanks for your great suggestion.
I've changed the syntax a bit. Instead of {"lineNumbers": false}
, now we need to use {"class":"!line-numbers"}
to disable line numbers for a code block.
Line highlighting works as before. All other attributes will be applied to <pre>
directly.
I notice that you implemented a prefix syntax for applying more prism rules to a code block, but its fairly limited. you can only add highlighted lines & the lineNumber classname
I went ahead & extended it so that you can apply an arbitrary number of classnames, data attributes, and ids. syntax looks like this:
too lazy to make a pull request so i'll drop the code here:
thanks for all the hard work!!! this is so much better than the default tiddlywiki highlighting : )