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
func emit_text(self : &MdEmitter, text : &string_view) : void
* 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.
flush#
Publicfunction
func flush(self : &MdEmitter) : void
* Flush any pending buffered text to the output.
emit_interpolation#
Publicfunction
func emit_interpolation(self : &MdEmitter, value : *Value) : void
* Handle Chemical interpolation (${...}) — emit the chemical value. * In the runtime, this is a no-op.