修复Editormd编辑器引用块语法部分字符解析错误的问题

This commit is contained in:
yangjian 2021-11-11 19:38:56 +08:00
parent a9279b1184
commit 13564b6f3a

View File

@ -3558,16 +3558,16 @@
}
var $class = "default";
if($quote.indexOf("i") === 0){
if($quote.indexOf("i ") === 0){
$class = "info";
$quote = $quote.substr(1);
}else if($quote.indexOf("w") === 0){
}else if($quote.indexOf("w ") === 0){
$class = "warning";
$quote = $quote.substr(1);
}else if($quote.indexOf("s") === 0){
}else if($quote.indexOf("s ") === 0){
$class = "success";
$quote = $quote.substr(1);
}else if($quote.indexOf("d") === 0){
}else if($quote.indexOf("d ") === 0){
$class = "danger";
$quote = $quote.substr(1);
}