danbooru / dtext_rb

compiled dtext parser extension
1 stars 6 forks source link

Use class instead of data attribute for code block language #2

Closed NamelessContributor closed 1 year ago

NamelessContributor commented 1 year ago

Use a class instead of a data attribute to specify the language, e.g. class="language-ruby". This is what the WHATWG suggests and what highlight.js supports. There's no straightforward way to have highlight.js use a data attribute for language detection.