You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
goldmark is fully compliant with the CommonMark. Before submitting issue, you must read CommonMark spec and confirm your output is different from CommonMark online demo.
Extensions(Autolink without <>, Table, etc) are not part of CommonMark spec. You should confirm your output is different from other official renderers correspond with an extension.
goldmark is not dedicated for Hugo. If you are Hugo user and your issue was raised by your experience in Hugo, you should consider create issue at Hugo repository at first .
Please answer the following before submitting your issue:
What version of goldmark are you using? : v1.7.4
What version of Go are you using? : go1.22.5
What operating system and processor architecture are you using? : darwin/amd64
What did you do? : Rendered the string []byte("> ```\n>\t0")
As far as I understand, the issue is within this function, and it's complicated enough that I don't have a fix. Tab should be interpreted as 3 spaces (since it is in the second column), one space is consumed by the blockquote, another one - by the code block indentation, and we should be left with a single space preceding "0".
The text was updated successfully, but these errors were encountered:
goldmark has https://github.com/yuin/goldmark/discussions in github.
You should post only issues here. Feature requests and questions should be posted at discussions.
<
>
, Table, etc) are not part of CommonMark spec. You should confirm your output is different from other official renderers correspond with an extension.Please answer the following before submitting your issue:
v1.7.4
go1.22.5
darwin/amd64
Rendered the string
[]byte("> ```\n>\t0")
panic: runtime error: slice bounds out of range [11:10]
yep, no panics there
The panicky snippet was found by a fuzzer, but here's a non-panicking input that results in the wrong output
Result:
Expected:
As far as I understand, the issue is within this function, and it's complicated enough that I don't have a fix. Tab should be interpreted as 3 spaces (since it is in the second column), one space is consumed by the blockquote, another one - by the code block indentation, and we should be left with a single space preceding "0".
The text was updated successfully, but these errors were encountered: