Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: remove check underscores
Stevene1977df14b10
diff --git a/plugin/gomark/parser/bold.go b/plugin/gomark/parser/bold.goindex 698fa5b82..401f217ea 100644--- a/plugin/gomark/parser/bold.go+++ b/plugin/gomark/parser/bold.go@@ -22,7 +22,7 @@ func (*BoldParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {return nil, 0}prefixTokenType := prefixTokens[0].Type- if prefixTokenType != tokenizer.Asterisk && prefixTokenType != tokenizer.Underscore {+ if prefixTokenType != tokenizer.Asterisk {return nil, 0}diff --git a/plugin/gomark/parser/bold_italic.go b/plugin/gomark/parser/bold_italic.goindex b83058803..d34d0ad28 100644--- a/plugin/gomark/parser/bold_italic.go+++ b/plugin/gomark/parser/bold_italic.go@@ -21,7 +21,7 @@ func (*BoldItalicParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {return nil, 0}prefixTokenType := prefixTokens[0].Type- if prefixTokenType != tokenizer.Asterisk && prefixTokenType != tokenizer.Underscore {+ if prefixTokenType != tokenizer.Asterisk {return nil, 0}diff --git a/plugin/gomark/parser/horizontal_rule.go b/plugin/gomark/parser/horizontal_rule.goindex 0edf4e3da..4a9c0e79f 100644--- a/plugin/gomark/parser/horizontal_rule.go+++ b/plugin/gomark/parser/horizontal_rule.go@@ -22,7 +22,7 @@ func (*HorizontalRuleParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {if matchedTokens[0].Type != matchedTokens[1].Type || matchedTokens[0].Type != matchedTokens[2].Type || matchedTokens[1].Type != matchedTokens[2].Type {return nil, 0}- if matchedTokens[0].Type != tokenizer.Hyphen && matchedTokens[0].Type != tokenizer.Underscore && matchedTokens[0].Type != tokenizer.Asterisk {+ if matchedTokens[0].Type != tokenizer.Hyphen && matchedTokens[0].Type != tokenizer.Asterisk {return nil, 0}return &ast.HorizontalRule{diff --git a/plugin/gomark/parser/horizontal_rule_test.go b/plugin/gomark/parser/horizontal_rule_test.goindex dffc064ce..c2faa39da 100644--- a/plugin/gomark/parser/horizontal_rule_test.go+++ b/plugin/gomark/parser/horizontal_rule_test.go@@ -41,12 +41,6 @@ func TestHorizontalRuleParser(t *testing.T) {text: "-*-",horizontalRule: nil,},- {- text: "___",- horizontalRule: &ast.HorizontalRule{- Symbol: "_",- },- },}for _, test := range tests {diff --git a/plugin/gomark/parser/italic.go b/plugin/gomark/parser/italic.goindex 3c93a8d00..9b586c043 100644--- a/plugin/gomark/parser/italic.go+++ b/plugin/gomark/parser/italic.go@@ -20,7 +20,7 @@ func (*ItalicParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {}prefixTokens := matchedTokens[:1]- if prefixTokens[0].Type != tokenizer.Asterisk && prefixTokens[0].Type != tokenizer.Underscore {+ if prefixTokens[0].Type != tokenizer.Asterisk {return nil, 0}prefixTokenType := prefixTokens[0].Type