From: Lungang Fang <lungang.fang@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] ox-confluence.el: Support quote blocks
Date: Tue, 13 Dec 2016 15:22:21 +1100 [thread overview]
Message-ID: <CAFfEE6P-Wbkk0azP7zyYerfudHzhVjg+u8v8gC8i+AgVt+z7fQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1246 bytes --]
* contrib/lisp/ox-confluence.el (org-confluence-quote-block): new function
Convert quote blocks as shown below:
#+BEGIN_QUOTE {quote}
This is a quote ==> This is a quote
#+END_QUOTE {quote}
---
contrib/lisp/ox-confluence.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/contrib/lisp/ox-confluence.el b/contrib/lisp/ox-confluence.el
index de8b00e..9518486 100644
--- a/contrib/lisp/ox-confluence.el
+++ b/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)
@@ -128,6 +129,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)
--
2.9.3 (Apple Git-75)
[-- Attachment #2: Type: text/html, Size: 1769 bytes --]
next reply other threads:[~2016-12-13 4:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-13 4:22 Lungang Fang [this message]
2016-12-13 13:00 ` [PATCH] ox-confluence.el: Support quote blocks Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFfEE6P-Wbkk0azP7zyYerfudHzhVjg+u8v8gC8i+AgVt+z7fQ@mail.gmail.com \
--to=lungang.fang@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.