Skip to content

Commit 5e18a5f

Browse files
authored
Merge pull request #14 from LinuxinaBit/patch-1
Apply ForceMonospace to Literals
2 parents 071918b + 6f2667a commit 5e18a5f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

js/micron-parser.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,11 @@ applyStyleToElement(el, style) {
572572
if (line === "\\`=") {
573573
line = "`=";
574574
}
575-
return [[this.stateToStyle(state), line]];
575+
if(this.enableForceMonospace) {
576+
return [[this.stateToStyle(state), this.splitAtSpaces(line)]];
577+
} else {
578+
return [[this.stateToStyle(state), line]];
579+
}
576580
}
577581

578582
let output = [];

0 commit comments

Comments
 (0)