Add support for latex blocks / environments
current support for latex fragments was inline only, i.e. lines containing block elements (e.g. a line starting with `* `, i.e. a headline) will not be parsed as part of the latex fragment but the respective block element. Parsing latex blocks at the block level should fix that. Note that in any case we don't do any processing and just emit the raw latex (leaving the rendering to e.g. js).
This commit is contained in:
parent
05a2dedbf8
commit
1849701ba7
8 changed files with 77 additions and 5 deletions
|
@ -162,6 +162,11 @@ func (w *HTMLWriter) WriteBlock(b Block) {
|
|||
}
|
||||
}
|
||||
|
||||
func (w *HTMLWriter) WriteLatexBlock(b LatexBlock) {
|
||||
WriteNodes(w, b.Content...)
|
||||
w.WriteString("\n")
|
||||
}
|
||||
|
||||
func (w *HTMLWriter) WriteResult(r Result) { WriteNodes(w, r.Node) }
|
||||
|
||||
func (w *HTMLWriter) WriteInlineBlock(b InlineBlock) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue