diff --git a/md2html b/md2html
index f24a737..9ea47df 100755
--- a/md2html
+++ b/md2html
@@ -153,6 +153,15 @@ function inline(text) {
next
}
+/^!\[.*\]\(.*\)$/ {
+ txt = $0
+ filenam = $0
+ gsub(/(^!\[|\].*$)/, "", txt)
+ gsub(/(^!.*\(|\)$)/, "", filenam)
+ oneliner("img",""," src=\"" escape(filenam) "\" alt=\"" escape(txt) "\"")
+ next
+}
+
{
level(prefix "p")
printf("%0" indent "s%s\n", "", inline($0))