ui: disable ambigous chars highlight in markdown

This commit is contained in:
undefined committed 2023-01-05 18:18:54 +08:00
1 parent 4005118d6b
commit 21c369139a
2 files changed
+4 -2

No files matched your search

@@ -98,6 +98,9 @@ export default class Editor extends DOMAttachedObject {
overviewRulerLanes: 0,
overviewRulerBorder: false,
fontFamily: UserContext.codeFontFamily,
unicodeHighlight: {
ambiguousCharacters: language !== 'markdown',
},
};
if (autoLayout) cfg.automaticLayout = true;
let prevHeight = 0;
@@ -12,5 +12,4 @@ export function isBelow(width) {
return window.innerWidth <= width;
}
window.Hydro.utils.isAbove = isAbove;
window.Hydro.utils.isBelow = isBelow;
Object.assign(window.Hydro.utils, { isAbove, isBelow });