优化Markdown扩展语法正则匹配

This commit is contained in:
yangjian 2020-05-20 06:47:47 +08:00
parent a4f3f2eb60
commit bee47ff177
2 changed files with 4 additions and 4 deletions

View File

@ -3382,7 +3382,8 @@
atLink : /@(\w+)/g,
email : /(\w+)@(\w+)\.(\w+)\.?(\w+)?/g,
emailLink : /(mailto:)?([\w\.\_]+)@(\w+)\.(\w+)\.?(\w+)?/g,
emoji : /:([\w\+-]+):/g,
//emoji : /:([\w\+-]+):/g,
emoji : /:([A-Za-z]+):/g,
emojiDatetime : /(\d{2}:\d{2}:\d{2})/g,
twemoji : /:(tw-([\w]+)-?(\w+)?):/g,
fontAwesome : /:(fa-([\w]+)(-(\w+)){0,}):/g,

View File

@ -240,10 +240,9 @@
toolbarIcons : function() {
return [
"undo", "redo", "|",
"bold", "del", "italic", "quote","kaiSpan", "|",
"h1", "h2", "h3", "|",
"h1", "bold", "del", "italic", "quote","kaiSpan", "|",
"list-ul", "list-ol", "hr", "link", "reference-link", "|",
"mindmap","imgUpload", "attachment" ,"code", "code-block", "htmltable", "|","datetime", "emoji", "html-entities", "pagebreak", "|",
"mindmap","imgUpload", "attachment" ,"code", "code-block", "htmltable", "|", "emoji", "html-entities", "pagebreak", "|",
"watch", "preview", "|",
"help"
]