Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
3989100a
Commit
3989100a
authored
Nov 19, 2025
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(parser): handle additional Unicode punctuation in tag parsing
parent
64e9d82d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tag.go
plugin/markdown/parser/tag.go
+3
-3
No files found.
plugin/markdown/parser/tag.go
View file @
3989100a
...
...
@@ -81,17 +81,17 @@ func (*tagParser) Parse(_ gast.Node, block text.Reader, _ parser.Context) gast.N
// U+FF00-U+FFEF - Fullwidth punctuation
if
c
>=
0x80
&&
tagEnd
+
2
<
len
(
line
)
{
b1
,
b2
,
b3
:=
line
[
tagEnd
],
line
[
tagEnd
+
1
],
line
[
tagEnd
+
2
]
// U+3000 IDEOGRAPHIC SPACE (E3 80 80)
if
b1
==
0xE3
&&
b2
==
0x80
&&
b3
==
0x80
{
break
}
// U+3001-U+303F CJK punctuation (E3 80 81 to E3 80 BF)
if
b1
==
0xE3
&&
b2
==
0x80
&&
b3
>=
0x81
&&
b3
<=
0xBF
{
break
}
// Common fullwidth punctuation: !?,。;:()
// U+FF01 ! (EF BC 81), U+FF1F ? (EF BC 9F)
// U+FF0C , (EF BC 8C), U+FF0E 。 (EF BC 8E)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment