The documentation for comment.Parser.LookupSym is unclear. When would you ever not return true?
Looking at Parser more, it isn't clear how you'd implement comment.Parser.LookupPackage in a general way. Has that been done somewhere? I don't see a way to disable links to declarations entirely, so `[MyType]` doc syntax is rendered in Markdown as just `MyType` instead of `\[MyType]`. Is there a way to do that? On Sunday, July 9, 2023 at 5:55:02 PM UTC-7 will....@gmail.com wrote: > Thanks, that was it! > > On Sunday, July 9, 2023 at 5:10:08 PM UTC-7 Sean Liao wrote: > >> your parsing setup is missing the lookup to identify which things are >> actually linkable symbols >> >> https://go.dev/play/p/sDtGA_JJZdz >> >> - sean >> >> On Sun, Jul 9, 2023, 23:45 will....@gmail.com <will....@gmail.com> wrote: >> >>> I'm trying to print the Markdown for package documentation using the new >>> go/doc/comment package. It seems like I have everything set up correctly to >>> customize the doc link URLs, but the comment.Printer.DocLinkURL callback >>> isn't being called: >>> >>> https://go.dev/play/p/7irKc6dTRRw >>> >>> The comment.Printer.HeadingID and HeadingLevel settings are working just >>> fine. >>> >>> Am I missing something? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "golang-nuts" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to golang-nuts...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/golang-nuts/41ce3de2-84a4-47a3-856d-0bc4543115fbn%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/golang-nuts/41ce3de2-84a4-47a3-856d-0bc4543115fbn%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/69ac8814-8210-48db-81b4-ea402f48e61en%40googlegroups.com.