markdown2 :: MdLink :: defaultinit
markdown2 :: MdLink :: is_autolink=
Is this link an autolink?markdown2 :: markdown_html_rendering $ MdLink :: render_html
Renderself
as HTML
markdown2 :: markdown_latex_rendering $ MdLink :: render_latex
Renderself
as HTML
markdown2 :: markdown_md_rendering $ MdLink :: render_md
Renderself
as Markdown
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
markdown2 :: MdNode :: defaultinit
markdown2 :: MdLink :: defaultinit
core :: Object :: defaultinit
markdown2 :: MdLinkOrImage :: has_brackets
Is thedestination
between pointy brackets <dest>
markdown2 :: MdLinkOrImage :: has_brackets=
Is thedestination
between pointy brackets <dest>
markdown2 :: MdLink :: is_autolink=
Is this link an autolink?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
class MdLink
super MdLinkOrImage
# Is this link an autolink?
var is_autolink = false is optional, writable
end
lib/markdown2/markdown_ast.nit:453,1--459,3
redef class MdLink
redef fun render_html(v) do
var url = self.destination
var title = self.title
v.add_raw "<a"
v.add_raw " href=\"{v.encode_uri(url)}\""
if title != null and not title.is_empty then
v.add_raw " title=\""
v.add_text title
v.add_raw "\""
end
v.add_raw ">"
visit_all(v)
v.add_raw "</a>"
end
end
lib/markdown2/markdown_html_rendering.nit:405,1--420,3
redef class MdLink
redef fun render_latex(v) do
if is_autolink then
v.add_raw "\\url\{"
v.add_text destination
v.add_raw "\}"
return
end
var title = self.title
v.add_raw "\\href\{"
v.add_text destination
v.add_raw "\}\{"
visit_all(v)
if title != null and not title.is_empty then
v.add_raw " ("
v.add_text title
v.add_raw ")"
end
v.add_raw "\}"
end
end
lib/markdown2/markdown_latex_rendering.nit:380,1--400,3