Improve handling of elements containing raw text
While adding another test case from the goorgeous issues it became clear that inline markup and html entity replacement were erronously applied to raw text elements like inline code =foo=, src/example/export blocks, example lines, etc. To correctly handle those cases in both org and html exports a new parseRawInline method had to be added. Also some misc html export whitespace fixes and stuff
This commit is contained in:
parent
ac2597af4c
commit
0eb3baf1bb
10 changed files with 191 additions and 45 deletions
|
@ -117,7 +117,7 @@ func (d *Document) newInclude(k Keyword) (int, Node) {
|
|||
if err != nil {
|
||||
panic(fmt.Sprintf("bad include '#+INCLUDE: %s': %s", k.Value, err))
|
||||
}
|
||||
return Block{strings.ToUpper(kind), []string{lang}, []Node{Text{string(bs)}}}
|
||||
return Block{strings.ToUpper(kind), []string{lang}, d.parseRawInline(string(bs))}
|
||||
}
|
||||
}
|
||||
return 1, Include{k, resolve}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue