Explorar el Código

ox-md: Handle HTML export blocks

* lisp/ox-md.el (org-md-export-block): Handle HTML export blocks.
Nicolas Goaziou hace 11 años
padre
commit
455fbca5f8
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      lisp/ox-md.el

+ 4 - 2
lisp/ox-md.el

@@ -157,8 +157,10 @@ channel."
 (defun org-md-export-block (export-block contents info)
   "Transcode a EXPORT-BLOCK element from Org to Markdown.
 CONTENTS is nil.  INFO is a plist holding contextual information."
-  (when (member (org-element-property :type export-block) '("MARKDOWN" "MD"))
-    (org-remove-indentation (org-element-property :value export-block))))
+  (if (member (org-element-property :type export-block) '("MARKDOWN" "MD"))
+      (org-remove-indentation (org-element-property :value export-block))
+    ;; Also include HTML export blocks.
+    (org-export-with-backend 'html export-block contents info)))
 
 
 ;;;; Headline