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
seankhliao
changed the title
cmd/go/fmt: markdown multi-level lists don't work if the comment ends directly before a thing
go/doc/comment: markdown multi-level lists don't work if the comment ends directly before a thing
Sep 6, 2022
Package comment implements parsing and reformatting of Go doc comments, (documentation comments), which are comments that immediately precede a top-level declaration of a package, const, func, type, or var.
Jorropo
changed the title
go/doc/comment: markdown multi-level lists don't work if the comment ends directly before a thing
go/doc/comment: markdown multi-level lists don't work in documentation comments
Sep 6, 2022
@seankhliao thx I didn't knew how this was called, however this isn't solving my issue.
Now I find that the Go Doc Comments spec doesn't support nested lists.
If I want to add support for that, how can I do this ? Should I open a proposal ?
Note also that there are no code blocks inside list items—any indented paragraph following a list item continues the list item, and the list ends at the next unindented line—nor are there nested lists. This avoids any the space-counting subtlety like in Markdown.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Load https://go.dev/play/p/au_BiSmy6DK then press
format
.What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: