fix: bold and italics on same line
This commit is contained in:
parent
24cabb6ce3
commit
9dabe899f3
4
main.js
4
main.js
|
@ -2215,8 +2215,8 @@ function applycolors()
|
||||||
line = line.replace(/(\[\[.*\]\])/g, "<u><span style='cursor:pointer'>$1</span></u>");
|
line = line.replace(/(\[\[.*\]\])/g, "<u><span style='cursor:pointer'>$1</span></u>");
|
||||||
|
|
||||||
// bold and italics
|
// bold and italics
|
||||||
line = line.replace(/(\*\*.*\*\*)/g, "<b>$1</b>");
|
line = line.replace(/\*\*([^\*]*)\*\*/g, "<b>**$1**</b>");
|
||||||
line = line.replace(/(^\*\*.*\*)/g, "<em>$1</em>");
|
line = line.replace(/\*([^\*]*)\*/g, "<em>*$1*</em>");
|
||||||
|
|
||||||
// comments
|
// comments
|
||||||
line = line.replace(/<\!/g, "<span style='color:lightgrey'><!");
|
line = line.replace(/<\!/g, "<span style='color:lightgrey'><!");
|
||||||
|
|
Loading…
Reference in New Issue