ghaiklor/kittik

Improve code highlighting

ghaiklor opened this issue · 0 comments

Shape for the Code supports only JavaScript at the moment. Makes sense to think about how can we improve it to support more languages and still highlight it through our custom renderer.

Maybe, we could use highlight.js, but it does not seem like its parsers returns annotated AST we could use to translate it to our renderer calls API. It returns an HTML with already annotated elements.

So maybe... we could parse an HTML then and extract annotations from there and use it to translate into renderer calls API.