Render an image.

Property definitions

markdown $ Decorator :: add_image
	# Render an image.
	fun add_image(v: PROCESSOR, link: Text, name: Text, comment: nullable Text) is abstract
lib/markdown/markdown.nit:687,2--688,88

markdown $ MdDecorator :: add_image
	redef fun add_image(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
lib/markdown/decorators.nit:107,2--117,4

markdown $ HTMLDecorator :: add_image
	redef fun add_image(v, link, name, comment) do
		v.add "<img src=\""
		append_value(v, link)
		v.add "\" alt=\""
		append_value(v, name)
		v.add "\""
		if comment != null and not comment.is_empty then
			v.add " title=\""
			append_value(v, comment)
			v.add "\""
		end
		v.add "/>"
	end
lib/markdown/markdown.nit:812,2--824,4

markdown $ ManDecorator :: add_image
	redef fun add_image(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
lib/markdown/man.nit:114,2--123,4