Implement inline source blocks

https://orgmode.org/manual/Structure-of-Code-Blocks.html
This commit is contained in:
Niklas Fasching 2020-04-16 14:28:40 +02:00
parent 6ed46ba95d
commit 3018ace8d0
8 changed files with 83 additions and 21 deletions

View file

@ -18,6 +18,7 @@ type Writer interface {
WriteNodeWithName(NodeWithName)
WriteHeadline(Headline)
WriteBlock(Block)
WriteInlineBlock(InlineBlock)
WriteExample(Example)
WriteDrawer(Drawer)
WritePropertyDrawer(PropertyDrawer)
@ -57,6 +58,8 @@ func WriteNodes(w Writer, nodes ...Node) {
w.WriteHeadline(n)
case Block:
w.WriteBlock(n)
case InlineBlock:
w.WriteInlineBlock(n)
case Example:
w.WriteExample(n)
case Drawer: