johnhooks/highlighter

bug: empty lines are stripped

johnhooks opened this issue · 4 comments

The Shiki tokenizer splits the file on newlines and empty lines are lost between tokenization and rendering to HTML.

EDIT: The lines aren't lost, but empty. The browser collapses them because they don't have a height. When the showLineNumbers directive is used the line number of an empty line provides height and they are properly displayed.