markdown2 $ RawTextVisitor :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
markdown2 :: MdVisitor :: defaultinit
markdown2 :: MdRenderer :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).
# A renderer that output raw text
class RawTextVisitor
super MdRenderer
# Text under construction
private var text: Buffer is noinit
redef fun render(node) do
text = new Buffer
enter_visit(node)
return text.to_s
end
# Append `string` to `text`
fun add(string: String) do text.append(string)
redef fun visit(node) do node.render_raw_text(self)
end
lib/markdown2/markdown_rendering.nit:28,1--45,3