We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59ff295 + 5ca9d22 commit 35008fbCopy full SHA for 35008fb
src/ui/css/diff2html.css
@@ -113,8 +113,6 @@
113
overflow-x: scroll;
114
overflow-y: hidden;
115
width: 50%;
116
- margin-right: -4px;
117
- margin-bottom: -8px;
118
}
119
120
.d2h-code-line {
src/ui/js/diff2html-ui-base.ts
@@ -146,6 +146,10 @@ export class Diff2HtmlUI {
146
147
const language = file.getAttribute('data-lang');
148
149
+ if (!(this.config.highlightLanguages instanceof Map)) {
150
+ this.config.highlightLanguages = new Map(Object.entries(this.config.highlightLanguages));
151
+ }
152
+
153
const hljsLanguage =
154
language && this.config.highlightLanguages.has(language)
155
? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
0 commit comments