markdown2 :: MdLinkOrImage :: has_brackets
Is thedestination
between pointy brackets <dest>
markdown2 :: MdLinkOrImage :: has_brackets=
Is thedestination
between pointy brackets <dest>
markdown2 $ MdLinkOrImage :: SELF
Type of this instance, automatically specialized in every classmarkdown2 :: markdown_man_rendering $ MdLinkOrImage :: render_man
Renderself
as Manpage format
markdown2 :: markdown_md_rendering $ MdLinkOrImage :: render_md
Renderself
as Markdown
markdown2 $ MdLinkOrImage :: to_s_attrs
Returnsself
attributes as a String
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
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
# A link or image
abstract class MdLinkOrImage
super MdNode
# Link destination
var destination: String is writable
# Link title
var title: nullable String is writable
# Is the `destination` between pointy brackets `<dest>`
var has_brackets = false is writable
redef fun to_s_attrs do return "{super}, destination={destination}, title={title or else "null"}"
end
lib/markdown2/markdown_ast.nit:432,1--446,3
redef class MdLinkOrImage
redef fun render_md(v) do
var title = self.title
v.add_raw "["
visit_all(v)
v.add_raw "]"
v.add_raw "("
if has_brackets then
v.add_raw "<"
end
v.add_raw destination
if has_brackets then
v.add_raw ">"
end
if title != null and not title.is_empty then
v.add_raw " \""
v.add_raw title.replace("\"", "\\\"")
v.add_raw "\""
end
v.add_raw ")"
end
end
lib/markdown2/markdown_md_rendering.nit:327,1--348,3