-
In https://pkg.go.dev/github.com/yuin/[email protected]/ast#Node type Node interface {
...
// Text returns text values of this node.
Text(source []byte) []byte
... However, it is unclear what the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@yuin Any insights? |
Beta Was this translation helpful? Give feedback.
-
So it turns out that the |
Beta Was this translation helpful? Give feedback.
-
@droslean hey thanks for the explanation. I had another question hoping you could help; can you please elaborate how some nodes have Also whats the difference between Text Block, and Paragraph? Similary Text vs String? I went through the docs but didnt find anything helpful there. Thanks in advance 🙏🏾 |
Beta Was this translation helpful? Give feedback.
So it turns out that the
source
is the actual bytes that we passed to parser. It is unclear to me why we need to pass them again.