mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Change the Markdown super and sub texts not to break the Ragots
Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
@ -219,12 +219,12 @@ function add_syntax(e, choice) {
|
||||
ta.selectionEnd = end + 2;
|
||||
break;
|
||||
case "sub":
|
||||
ta.value = before + "_" + between + "_" + after;
|
||||
ta.selectionEnd = end + 1;
|
||||
ta.value = before + "<sub>" + between + "</sub>" + after;
|
||||
ta.selectionEnd = end + 5;
|
||||
break;
|
||||
case "sup":
|
||||
ta.value = before + "^" + between + "^" + after;
|
||||
ta.selectionEnd = end + 1;
|
||||
ta.value = before + "<sup>" + between + "</sup>" + after;
|
||||
ta.selectionEnd = end + 5;
|
||||
break;
|
||||
case "link":
|
||||
if (between === "") {
|
||||
|
Reference in New Issue
Block a user