With highlightjs, the rendered code block looks OK, even though it does not have any syntax highlighting.
With shiki, the rendered block is mangled, all newlines and indentation is gone. This is because the language id in shiki is not protobuf, but proto.
So I'm asking if it's possible to at least keep the formatting in case the specified language is not recognized, to keep it readable. Even better, if one could configure aliases for existing languages (without completely registering them anew).
To be fair, an error is reported:
(asciidoctor): No language registration for protobuf
Consider a code block like this:
With highlightjs, the rendered code block looks OK, even though it does not have any syntax highlighting.
With shiki, the rendered block is mangled, all newlines and indentation is gone. This is because the language id in shiki is not
protobuf
, butproto
.So I'm asking if it's possible to at least keep the formatting in case the specified language is not recognized, to keep it readable. Even better, if one could configure aliases for existing languages (without completely registering them anew).
To be fair, an error is reported: