Skip to content

Commit

Permalink
v0fix: fixed a few demo issues
Browse files Browse the repository at this point in the history
- fixed weird characters in prettyAst from missing colors
- turned off spellcheck for options textarea
  • Loading branch information
AlansCodeLog committed Oct 8, 2023
1 parent 204e042 commit 91436e3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions demo/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ body.innerHTML = `
<div class="options">
<h2>Options</h2>
<div class="options-group">
<textarea class="options-raw">${crop(`
<textarea spellcheck="false" class="options-raw">${crop(`
{
customPropertyOperators: [":", ">", "<"],
expandedPropertySeparator: ":",
Expand Down Expand Up @@ -102,7 +102,11 @@ function onInput(e) {
variable: "<span class=\"res-var\">",
other: "<span class=\"res-other\">",
position: "<span class=\"res-pos\">",
reset: "</span>",
reset: "<\/span>",
values: "<span>",
info: "<span>",
error: "<span>",
hint: "<span>"
})
els.resultSimple.innerHTML = parsedString

Expand Down

0 comments on commit 91436e3

Please sign in to comment.