class Asciidoctor::AbstractNode
def media_uri(target, asset_dir_key = 'imagesdir')
the media is located (default: 'imagesdir')
asset_dir_key - The String attribute key used to lookup the directory where
target - A String reference to the target media
The return value can be safely used in a media tag (img, audio, video).
specified attribute key, if provided.
The target media is resolved relative to the directory retrieved from the
If the target media is a URI reference, then leave it untouched.
Public: Construct a URI reference to the target media.
def media_uri(target, asset_dir_key = 'imagesdir') normalize_web_path target, (asset_dir_key ? @document.attr(asset_dir_key) : nil) end