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
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?
This discussion was converted from issue #407 on August 02, 2023 09:21.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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?
Beta Was this translation helpful? Give feedback.
All reactions