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

@ -136,6 +136,8 @@ func (w *HTMLWriter) WriteBlock(b Block) {
}
}
func (w *HTMLWriter) WriteResult(r Result) { WriteNodes(w, r.Node) }
func (w *HTMLWriter) WriteInlineBlock(b InlineBlock) {
content := w.blockContent(strings.ToUpper(b.Name), b.Children)
switch b.Name {