Skip to content

armgit / memos

Public Imported from GitHub
0

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.

chore: fix highlight cursor

Steven10d709c16734
diff --git a/plugin/gomark/parser/highlight.go b/plugin/gomark/parser/highlight.go
index ede94964b..7acd5eb7f 100644
--- a/plugin/gomark/parser/highlight.go
+++ b/plugin/gomark/parser/highlight.go
@@ -40,5 +40,5 @@ func (*HighlightParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {
return &ast.Highlight{
Content: tokenizer.Stringify(matchedToken[2:cursor]),
- }, cursor + 1
+ }, cursor + 2
}