Export WriteNodesAsString on writer interface
WriteNodesAsString is simple enough to implement but exposing it is helpful in the implementation of extending writers and we don't aim to keep writer a small interface so let's expose it.
This commit is contained in:
parent
c9d11e1556
commit
9a0a9c11eb
13 changed files with 42 additions and 41 deletions
|
@ -109,6 +109,6 @@ func (d *Document) parseListItem(l List, i int, parentStop stopFn) (int, Node) {
|
|||
return i - start, ListItem{bullet, status, nodes}
|
||||
}
|
||||
|
||||
func (n List) String() string { return orgWriter.nodesAsString(n) }
|
||||
func (n ListItem) String() string { return orgWriter.nodesAsString(n) }
|
||||
func (n DescriptiveListItem) String() string { return orgWriter.nodesAsString(n) }
|
||||
func (n List) String() string { return orgWriter.WriteNodesAsString(n) }
|
||||
func (n ListItem) String() string { return orgWriter.WriteNodesAsString(n) }
|
||||
func (n DescriptiveListItem) String() string { return orgWriter.WriteNodesAsString(n) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue