markdown2 $ MdHtmlBlock :: SELF
Type of this instance, automatically specialized in every classmarkdown2 :: markdown_html_rendering $ MdHtmlBlock :: render_html
Renderself
as HTML
markdown2 :: markdown_latex_rendering $ MdHtmlBlock :: render_latex
Renderself
as HTML
markdown2 :: markdown_man_rendering $ MdHtmlBlock :: render_man
Renderself
as Manpage format
markdown2 :: markdown_md_rendering $ MdHtmlBlock :: render_md
Renderself
as Markdown
markdown2 $ MdHtmlBlock :: to_s_attrs
Returnsself
attributes as a String
markdown2 :: MdBlock :: can_contain
Can this block containblock
?
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
markdown2 :: MdNode :: defaultinit
markdown2 :: MdBlock :: defaultinit
markdown2 :: MdHtmlBlock :: defaultinit
core :: Object :: defaultinit
markdown2 :: MdBlock :: is_container=
Can this block contain other blocks?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.
markdown2 :: MdNode :: location=
Node location in original markdowncore :: Object :: output_class_name
Display class name on stdout (debug only).markdown2 :: MdNode :: post_process
Accept the visit of aMdPostProcessor
markdown2 :: MdNode :: render_raw_text
Renderself
as raw text
# An html block
class MdHtmlBlock
super MdBlock
# Literal content
var literal: nullable String = null is writable
redef fun to_s_attrs do return "{super}, literal={literal or else "null"}"
end
lib/markdown2/markdown_ast.nit:278,1--286,3
redef class MdHtmlBlock
redef fun render_html(v) do
v.add_line
var literal = self.literal or else ""
var lines = literal.split("\n")
for i in [0..lines.length[ do
var line = lines[i]
if not line.trim.is_empty then
v.add_raw line
end
if i < lines.length - 1 then
v.add_raw "\n"
end
end
v.add_line
end
end
lib/markdown2/markdown_html_rendering.nit:317,1--333,3
redef class MdHtmlBlock
redef fun render_latex(v) do
v.add_line
v.add_indent
v.add_raw "\\begin\{verbatim\}"
v.add_line
v.add_indent
v.add_raw literal or else ""
v.add_line
v.add_indent
v.add_raw "\\end\{verbatim\}"
v.add_line
end
end
lib/markdown2/markdown_latex_rendering.nit:311,1--324,3