Because we have an unexported inlining of exported fields, code like:
fmt.Printf("`-> %v\n", string(node.Destination))
Works fine. However, the documentation for ast.Link looks like this:
$ go doc ast.Link
package ast // import "github.com/yuin/goldmark/ast"
type Link struct {
// Has unexported fields.
}
A Link struct represents a link of the Markdown text.
func NewLink() *Link
func (n *Link) Dump(source []byte, level int)
func (n *Link) Inline()
func (n *Link) Kind() NodeKind
Thus creating some confusion.
Would it be possible to make the inlining exported?
May I direct your attention here:
https://github.com/yuin/goldmark/blob/master/ast/inline.go#L375
Because we have an unexported inlining of exported fields, code like:
Works fine. However, the documentation for ast.Link looks like this:
Thus creating some confusion.
Would it be possible to make the inlining exported?