api
emitter.ch
Declarations in emitter.ch
1 declarationsmd_parser
Declarations
Public only
MdEmitter#
Publicinterface
interface MdEmitter
MdEmitter abstracts how MD-to-HTML conversion output is emitted.
The compiler plugin (md_cbi) implements this by accumulating text
and flushing to AST nodes. The runtime (md) implements it by
appending to a std::string.
Callbacks for code highlighting and link rewriting are passed through
to the shared convert_md_node function.
emit_text#
Publicfunction
* Append raw HTML text to the output.
emit_char#
Publicfunction
func emit_char(self : &MdEmitter, c : char) : void
* Append a single character to the output.
emit_integer#
Publicfunction
func emit_integer(self : &MdEmitter, v : i64) : void
* Append an integer value to the output.