markdown2 :: MdImage :: defaultinit
markdown2 :: markdown_html_rendering $ MdImage :: render_html
Renderself
as HTML
markdown2 :: markdown_latex_rendering $ MdImage :: render_latex
Renderself
as HTML
markdown2 :: markdown_md_rendering $ MdImage :: render_md
Renderself
as Markdown
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
markdown2 :: MdImage :: defaultinit
markdown2 :: MdNode :: defaultinit
core :: Object :: defaultinit
markdown2 :: MdLinkOrImage :: has_brackets
Is thedestination
between pointy brackets <dest>
markdown2 :: MdLinkOrImage :: has_brackets=
Is thedestination
between pointy brackets <dest>
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 image
class MdImage
super MdLinkOrImage
end
lib/markdown2/markdown_ast.nit:448,1--451,3
redef class MdImage
redef fun render_html(v) do
var url = self.destination
var title = self.title
v.add_raw "<img"
v.add_raw " src=\"{v.encode_uri(url)}\""
var alt_text = self.alt_text
v.add_raw " alt=\"{alt_text}\""
if title != null and not title.is_empty then
v.add_raw " title=\""
v.add_text title
v.add_raw "\""
end
v.add_raw " />"
end
private fun alt_text: String do
var v = new RawTextVisitor
return v.render(self)
end
end
lib/markdown2/markdown_html_rendering.nit:380,1--403,3
redef class MdImage
redef fun render_latex(v) do
v.add_raw "\\includegraphics\{"
v.add_text destination
v.add_raw "\}"
end
private fun alt_text: String do
var v = new RawTextVisitor
return v.render(self)
end
end
lib/markdown2/markdown_latex_rendering.nit:367,1--378,3