diff --git a/markdown-mode.el b/markdown-mode.el index 311050f4..2157ae34 100644 --- a/markdown-mode.el +++ b/markdown-mode.el @@ -7663,6 +7663,16 @@ or remove markup." ;;; Commands ================================================================== +(defun markdown--replace-rel2abs (output-buffer-name) + "Convert relative image URLs to absolute paths in OUTPUT-BUFFER-NAME." + (let ((buf (get-buffer-create output-buffer-name)) + (base-path default-directory)) + (with-current-buffer buf + (goto-char (point-min)) + (while (re-search-forward "