Links that are specified somewhere in the mardown document to be reused as shortcuts.
markdown :: LinkRef :: defaultinit
markdown :: LinkRef :: is_abbrev=
Is the link an abreviation?markdown :: LinkRef :: with_title
Create a link with a title.core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
markdown :: LinkRef :: defaultinit
core :: Object :: defaultinit
markdown :: LinkRef :: is_abbrev=
Is the link an abreviation?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).markdown :: LinkRef :: with_title
Create a link with a title.
# A Link Reference.
# Links that are specified somewhere in the mardown document to be reused as shortcuts.
#
# ~~~raw
# [1]: http://example.com/ "Optional title"
# ~~~
class LinkRef
# Link href
var link: String
# Optional link title
var title: nullable String = null
# Is the link an abreviation?
var is_abbrev = false
# Create a link with a title.
init with_title(link: String, title: nullable String) do
init(link)
self.title = title
end
end
lib/markdown/markdown.nit:613,1--635,3