mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: disable ambigous chars highlight in markdown
This commit is contained in:
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,
|
overviewRulerLanes: 0,
|
||||||
overviewRulerBorder: false,
|
overviewRulerBorder: false,
|
||||||
fontFamily: UserContext.codeFontFamily,
|
fontFamily: UserContext.codeFontFamily,
|
||||||
|
unicodeHighlight: {
|
||||||
|
ambiguousCharacters: language !== 'markdown',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
if (autoLayout) cfg.automaticLayout = true;
|
if (autoLayout) cfg.automaticLayout = true;
|
||||||
let prevHeight = 0;
|
let prevHeight = 0;
|
||||||
|
|||||||
@@ -12,5 +12,4 @@ export function isBelow(width) {
|
|||||||
return window.innerWidth <= width;
|
return window.innerWidth <= width;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.Hydro.utils.isAbove = isAbove;
|
Object.assign(window.Hydro.utils, { isAbove, isBelow });
|
||||||
window.Hydro.utils.isBelow = isBelow;
|
|
||||||
Reference in new issue
Block a user