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.
This commit is contained in:
Nicolas Goaziou 2012-08-19 15:59:24 +02:00
parent 2fd696716a
commit c81bcccbf3
1 changed files with 1 additions and 1 deletions

View File

@ -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)))