Update the `highlightCode` method of `Diff2HtmlUI` to check if the hljs reference is null only once (at the start). This address the "HACK" comments by using a locally scoped variable for hljs. This way, TypeScript is able to deduce that, after the initial null-check, hljs is in fact not null. |
||
|---|---|---|
| .. | ||
| diff2html-ui-base.ts | ||
| diff2html-ui-slim.ts | ||
| diff2html-ui.ts | ||
| highlight.js-helpers.ts | ||
| highlight.js-slim.ts | ||