Support html export blocks
This commit is contained in:
parent
04db858934
commit
53b61abfd0
4 changed files with 18 additions and 7 deletions
|
@ -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{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue