Fix multiline emphasis
I didn't have a test case for this and broke it when i introduced Line nodes to support printing back to org mode. Oops
This commit is contained in:
parent
6de03e0d13
commit
6637e63892
9 changed files with 104 additions and 71 deletions
|
@ -66,7 +66,7 @@ func (d *Document) parseAffiliated(i int, stop stopFn) (int, Node) {
|
|||
consumed, node := 0, (Node)(nil)
|
||||
if t := d.tokens[i]; t.kind == "text" {
|
||||
if nodes := d.parseInline(t.content); len(nodes) == 1 && isImageOrVideoLink(nodes[0]) {
|
||||
consumed, node = 1, Line{nodes[:1]}
|
||||
consumed, node = 1, Paragraph{nodes[:1]}
|
||||
}
|
||||
} else {
|
||||
consumed, node = d.parseOne(i, stop)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue