Hi John, John Hendy <jw.he...@gmail.com> writes:
> So, my proposal would be that if either are present, Org could > (should?) use html image specifications instead of markdown. I'll let Nicolas decide on this. In the meantime, I find the attached patch useful. It uses the file-name instead of [img] when the image link has no description. If you find this useful, I'll apply it. Thanks,
diff --git a/lisp/ox-md.el b/lisp/ox-md.el index 76bea94..26a36e2 100644 --- a/lisp/ox-md.el +++ b/lisp/ox-md.el @@ -306,7 +306,8 @@ a communication channel." (caption (org-export-data (org-export-get-caption (org-export-get-parent-element link)) info))) - (format "" + (format "" + (file-name-nondirectory path) (if (not (org-string-nw-p caption)) path (format "%s \"%s\"" path caption))))) ((string= type "coderef")
-- Bastien