We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad15651 commit 65dcf6cCopy full SHA for 65dcf6c
ast/ast.go
@@ -123,6 +123,10 @@ type Node interface {
123
Dump(source []byte, level int)
124
125
// Text returns text values of this node.
126
+ // This method is valid only for some inline nodes.
127
+ // If this node is a block node, Text returns a text value as reasonable as possible.
128
+ // Notice that there are no 'correct' text values for the block nodes.
129
+ // Result for the block nodes may be different from your expectation.
130
Text(source []byte) []byte
131
132
// HasBlankPreviousLines returns true if the row before this node is blank,
0 commit comments