Skip to content

Commit

Permalink
workaround issue of not being able to highlight some katex output (du…
Browse files Browse the repository at this point in the history
…e to \ud835 bug)
  • Loading branch information
KevinWang15 committed Mar 17, 2023
1 parent 0e499ed commit 45716a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@notelix/web-marker",
"version": "2.0.3",
"version": "2.0.4",
"description": "a web page highlighter",
"main": "./build/web-marker.js",
"types": "./build/libroot.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/classes/Marker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const AttributeNameHighlightId = "highlight-id";

const defaultCharsToKeepForTextBeforeAndTextAfter = 128;
const blackListedElementStyle = document.createElement("style");
blackListedElementStyle.innerText = `.${HighlightBlacklistedElementClassName} {display:none!important;};`;
blackListedElementStyle.innerText = `.${HighlightBlacklistedElementClassName}, math>semantics mi, math>semantics mo {display:none!important;};`;

interface MarkerConstructorArgs {
rootElement?: HTMLElement;
Expand Down

0 comments on commit 45716a7

Please sign in to comment.