diff --git a/src/ts/plugins/automark.ts b/src/ts/plugins/automark.ts index 6fea365b..ce119d46 100644 --- a/src/ts/plugins/automark.ts +++ b/src/ts/plugins/automark.ts @@ -1,5 +1,7 @@ const excludesDat = ['<','>','{','}','[',']','(',')','-',':',';','…','—','–','_','*','+','/','\\','|','!','?','.',',',' '] +const symbols = ['<','>','{','}','[',']','(',')','-',':',';','…','—','–','_','*','+','/','\\','|','!','?','.',',',' ', '\n', '。', '、', '!', '?', ',', ';', ':', '(', ')', '【', '】', '「', '」', '『', '』', '“', '”', '‘', '’', '《', '》', '〈', '〉', '‹', '›', '«', '»', '‟', '„'] + const selfClosingTags = [ 'br','hr','img','input','meta','link','base','area','col','command','embed','keygen','param','source','track','wbr', //self closing tags defined by HTML5 @@ -123,6 +125,10 @@ export function risuFormater(dat:string){ //spaces for detection line = ' ' + line + ' ' + const isNotCharacter = (t:string) => { + return symbols.includes(t) + } + for(let j=0;j