Explorar o código

org-md: Fix export of paragraph starting with an hash sign

* contrib/lisp/org-md.el (org-md-paragraph): Fix export of paragraph
  starting with an hash sign.
Nicolas Goaziou %!s(int64=13) %!d(string=hai) anos
pai
achega
c81bcccbf3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      contrib/lisp/org-md.el

+ 1 - 1
contrib/lisp/org-md.el

@@ -334,7 +334,7 @@ a communication channel."
   (let ((first-object (car (org-element-contents paragraph))))
     ;; If paragraph starts with a #, protect it.
     (if (and (stringp first-object) (string-match "\\`#" first-object))
-	(replace-match "\\#" nil t first-object)
+	(replace-regexp-in-string "\\`#" "\\#" contents nil t)
       contents)))