gsub(/^[\t ]+$/, "", text); gsub(/\\/, "", href);
gsub(/\\/, "", title); gsub(/[\n\t]+/, " ", title);
- return "<img src=\"" HTML(href, 1) "\" alt=\"" HTML(text?text:title?title:href) "\"" \
+ return "<img src=\"" HTML(href) "\" alt=\"" HTML(text?text:title?title:href) "\"" \
(title?" title=\"" HTML(title) "\"":"") (attrib?" class=\"" HTML(attrib) "\"":"") \
">" inline( substr( line, len + 1) );
id = gensub(/^!\[([^\n]*)\] ?\[([^\n]*)\].*/, "\\2", 1, substr(line, 1, len) );
if ( ! id ) id = text;
if ( rl_href[id] && rl_title[id] ) {
- return "<img src=\"" HTML(rl_href[id], 1) "\" alt=\"" HTML(text) "\" title=\"" HTML(rl_title[id]) "\">" \
+ return "<img src=\"" HTML(rl_href[id]) "\" alt=\"" HTML(text) "\" title=\"" HTML(rl_title[id]) "\">" \
inline( substr( line, len + 1) );
} else if ( rl_href[id] ) {
- return "<img src=\"" HTML(rl_href[id], 1) "\" alt=\"" HTML(text) "\">" \
+ return "<img src=\"" HTML(rl_href[id]) "\" alt=\"" HTML(text) "\">" \
inline( substr( line, len + 1) );
} else {
return "" HTML(substr(line, 1, len)) inline( substr(line, len + 1) );
gsub(/^[\t ]+$/, "", text); gsub(/\\/, "", href);
- return "<figure data-src=\"" HTML(href, 1) "\"" (attrib?" class=\"" HTML(attrib) "\"":"") ">" \
- "<img src=\"" HTML(href, 1) "\" alt=\"" HTML(text?text:title?title:href) "\"" \
+ return "<figure data-src=\"" HTML(href) "\"" (attrib?" class=\"" HTML(attrib) "\"":"") ">" \
+ "<img src=\"" HTML(href) "\" alt=\"" HTML(text?text:title?title:href) "\"" \
(attrib?" class=\"" HTML(attrib) "\"":"") ">" \
(title?"<figcaption>" inline(title) "</figcaption>":"") \
"</figure>\n\n" \
id = gensub(/^!\[([^\n]*)\] ?\[([^\n]*)\](\n.*)?$/, "\\2", 1, block);
if ( ! id ) id = text;
if ( rl_href[id] && rl_title[id] ) {
- return "<figure data-src=\"" HTML(rl_href[id], 1) "\">" \
- "<img src=\"" HTML(rl_href[id], 1) "\" alt=\"" HTML(text) "\">" \
+ return "<figure data-src=\"" HTML(rl_href[id]) "\">" \
+ "<img src=\"" HTML(rl_href[id]) "\" alt=\"" HTML(text) "\">" \
"<figcaption>" inline(rl_title[id]) "</figcaption>" \
"</figure>\n\n" \
_block( substr( block, len + 1) );
} else if ( rl_href[id] ) {
- return "<figure data-src=\"" HTML(rl_href[id], 1) "\">" \
- "<img src=\"" HTML(rl_href[id], 1) "\" alt=\"" HTML(text) "\">" \
+ return "<figure data-src=\"" HTML(rl_href[id]) "\">" \
+ "<img src=\"" HTML(rl_href[id]) "\" alt=\"" HTML(text) "\">" \
"</figure>\n\n" \
_block( substr( block, len + 1) );
} else {