In md2pptx and also Drafts - from the same source in fact - I’d like to be able to do syntax colouring in code.
In md2pptx I explicitly support using
span elements to colour pieces of text. But I don’t yet support them in code snippets - indented by 4 characters. ( I don’t yet support triple backticks at all.)
My question. Is: How far a deviation would it be from the spirit of common markdown to support span elements in code snippets?
My concern is that it makes it impossible to use with HTML snippets. One possible compromise is to only treat as a span an occurrence where the class is predefined - as metadata at the front of the file/draft.
The alternative is to support the convention where a language is indicated straight after three backticks. Personally I think this is beyond the scope of what md2pptx can/should do. (It does, however, already support the conversion of SVG to PNG - so there’s a kind of a precedent there.)