mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Add warning to Node.Text GoDoc
This commit is contained in:
parent
ad1565131a
commit
65dcf6cd0a
1 changed files with 4 additions and 0 deletions
|
|
@ -123,6 +123,10 @@ type Node interface {
|
|||
Dump(source []byte, level int)
|
||||
|
||||
// Text returns text values of this node.
|
||||
// This method is valid only for some inline nodes.
|
||||
// If this node is a block node, Text returns a text value as reasonable as possible.
|
||||
// Notice that there are no 'correct' text values for the block nodes.
|
||||
// Result for the block nodes may be different from your expectation.
|
||||
Text(source []byte) []byte
|
||||
|
||||
// HasBlankPreviousLines returns true if the row before this node is blank,
|
||||
|
|
|
|||
Loading…
Reference in a new issue