aboutsummaryrefslogtreecommitdiff
path: root/markdown/lexer.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-12-13 17:15:47 +0000
committerAnhgelus Morhtuuzh <william@herges.fr>2025-12-13 17:15:47 +0000
commit62fa3f77e8215fdaaf72ddb9df4162e0d65148da (patch)
treedbf20dca933996cf253fe2d110d8381b0c407b2d /markdown/lexer.go
parentae297bbd117835304b298e7d8a2f914111940e77 (diff)
parent48311424ba2eaac254864c008b6d18e8510f827d (diff)
Merge pull request '[Refactor] Replace manual DOM manipulation in markdown by cleaner one' (#2) from refactor/mardown-dom into main
Reviewed-on: https://git.anhgelus.world/anhgelus/small-web/pulls/2
Diffstat (limited to 'markdown/lexer.go')
-rw-r--r--markdown/lexer.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/markdown/lexer.go b/markdown/lexer.go
index 30587e4..b68bbf9 100644
--- a/markdown/lexer.go
+++ b/markdown/lexer.go
@@ -14,9 +14,9 @@ const (
lexerCode lexerType = "code"
- lexerHeader lexerType = "header"
- lexerQuote lexerType = "quote"
- lexerList lexerType = "list"
+ lexerHeading lexerType = "header"
+ lexerQuote lexerType = "quote"
+ lexerList lexerType = "list"
lexerExternal lexerType = "external"
@@ -115,7 +115,7 @@ func lex(s string) *lexers {
fn(c, lexerBreak, nil)
case '#':
newLine = false
- fn(c, lexerHeader, nil)
+ fn(c, lexerHeading, nil)
case '>':
newLine = false
fn(c, lexerQuote, nil)