markdown :: Decorator :: add_link
# Render a link. fun add_link(v: PROCESSOR, link: Text, name: Text, comment: nullable Text) is abstract
redef fun add_link(v, link, name, comment) do v.add "[" v.add name v.add "](" append_value(v, link) if comment != null and not comment.is_empty then v.add " " append_value(v, comment) end v.add ")" end
redef fun add_link(v, link, name, comment) do v.add "<a href=\"" append_value(v, link) v.add "\"" if comment != null and not comment.is_empty then v.add " title=\"" append_value(v, comment) v.add "\"" end v.add ">" v.emit_text(name) v.add "</a>" end
redef fun add_link(v, link, name, comment) do v.add name v.add " (" append_value(v, link) if comment != null and not comment.is_empty then v.add " " append_value(v, comment) end v.add ")" end