Skip to content

Commit

Permalink
🎨 fix #8037
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Apr 20, 2023
1 parent 9d27198 commit 71110ae
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/src/protyle/hint/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,11 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;
tempElement.innerHTML = value.replace(/<mark>/g, "").replace(/<\/mark>/g, "");
tempElement = tempElement.firstElementChild as HTMLDivElement;
if (refIsS) {
tempElement.setAttribute("data-subtype", "s");
tempElement.innerText = range.toString().replace(this.splitChar, "");
const staticText = range.toString().replace(this.splitChar, "")
if (staticText) {
tempElement.setAttribute("data-subtype", "s");
tempElement.innerText = staticText;
}
}
protyle.toolbar.setInlineMark(protyle, "block-ref", "range", {
type: "id",
Expand Down

0 comments on commit 71110ae

Please sign in to comment.