fix markdown preview for polls

pull/55/head
Aevann1 2022-12-07 19:12:53 +02:00
parent 7a5750a408
commit 124a86643d
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ function markdown(t) {
}
}
let options = Array.from(input.matchAll(/\s\$\$([^\$\n]+)\$\$\s*(?![^`]*`)/gi))
let options = Array.from(input.matchAll(/\$\$([^\$\n]+)\$\$(?![^`]*`)/gi))
if(options != null){
for(i = 0; i < options.length; i++){
const option = options[i][0];
@ -82,7 +82,7 @@ function markdown(t) {
}
}
options = Array.from(input.matchAll(/\s*&&([^\$\n]+)&&\s*(?![^`]*`)/gi))
options = Array.from(input.matchAll(/&&([^&\n]+)&&(?![^`]*`)/gi))
if(options != null){
for(i = 0; i < options.length; i++){
const option = options[i][0];