Implement source block results
To support code block directives like :exports none we need context - i.e. we need to have the block and it's results at once and can't just render them independently.
This commit is contained in:
parent
f6f4646d45
commit
cd923ba41a
4 changed files with 31 additions and 5 deletions
|
@ -150,7 +150,7 @@ func (d *Document) parseInclude(k Keyword) (int, Node) {
|
|||
d.Log.Printf("Bad include %#v: %s", k, err)
|
||||
return k
|
||||
}
|
||||
return Block{strings.ToUpper(kind), []string{lang}, d.parseRawInline(string(bs))}
|
||||
return Block{strings.ToUpper(kind), []string{lang}, d.parseRawInline(string(bs)), nil}
|
||||
}
|
||||
}
|
||||
return 1, Include{k, resolve}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue