Support html export blocks

This commit is contained in:
Niklas Fasching 2018-12-11 16:03:04 +01:00
parent 04db858934
commit 53b61abfd0
4 changed files with 18 additions and 7 deletions

View file

@ -24,7 +24,7 @@ func lexBlock(line string) (token, bool) {
return nilToken, false
}
func isRawTextBlock(name string) bool { return name == "SRC" || name == "EXAMPLE" }
func isRawTextBlock(name string) bool { return name == "SRC" || name == "EXAMPLE" || name == "EXPORT" }
func (d *Document) parseBlock(i int, parentStop stopFn) (int, Node) {
t, start, lines := d.tokens[i], i, []string{}