Browse Source

ox-confluence.el: Support quote blocks

* contrib/lisp/ox-confluence.el (org-confluence-quote-block): New
  function.

Convert quote blocks as shown below:

This is a quote   ==>   This is a quote
Lungang Fang 8 years ago
parent
commit
01b2c12fec
1 changed files with 4 additions and 0 deletions
  1. 4 0
      contrib/lisp/ox-confluence.el

+ 4 - 0
contrib/lisp/ox-confluence.el

@@ -50,6 +50,7 @@
 		     (link . org-confluence-link)
 		     (paragraph . org-confluence-paragraph)
 		     (property-drawer . org-confluence-property-drawer)
+		     (quote-block . org-confluence-quote-block)
 		     (section . org-confluence-section)
 		     (src-block . org-confluence-src-block)
 		     (strike-through . org-confluence-strike-through)
@@ -133,6 +134,9 @@ a communication channel."
   (and (org-string-nw-p contents)
        (format "\{\{%s\}\}" contents)))
 
+(defun org-confluence-quote-block (quote-block contents info)
+  (format "{quote}\n%s{quote}" contents))
+
 (defun org-confluence-section (section contents info)
   contents)