Implement result blocks

This commit is contained in:
Niklas Fasching 2020-04-16 17:28:49 +02:00
parent 232c27327c
commit f6f4646d45
8 changed files with 66 additions and 0 deletions

View file

@ -104,6 +104,11 @@ func (w *OrgWriter) WriteBlock(b Block) {
w.WriteString("#+END_" + b.Name + "\n")
}
func (w *OrgWriter) WriteResult(r Result) {
w.WriteString("#+RESULTS:\n")
WriteNodes(w, r.Node)
}
func (w *OrgWriter) WriteInlineBlock(b InlineBlock) {
switch b.Name {
case "src":