From 38a293e507c43ded156d15183ad67cb20000be05 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Thu, 4 Oct 2018 16:33:50 -0400 Subject: [PATCH] Export NOTES special block using a Confluence note macro --- ox-confluence-en.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ox-confluence-en.el b/ox-confluence-en.el index de2f683..8ce83d7 100644 --- a/ox-confluence-en.el +++ b/ox-confluence-en.el @@ -173,9 +173,13 @@ transcoded using the matching Confluence wiki macro. CONTENTS holds the contents of the element. INFO is a plist holding contextual information." (let ((block-type (downcase (org-element-property :type special-block)))) - (if (member block-type '("info" "note" "warning")) - (ox-confluence-en--macro block-type contents) - (org-ascii-special-block special-block contents info)))) + (cond ((string-equal block-type "info") + (ox-confluence-en--macro "info" contents)) + ((member block-type '("note" "notes")) + (ox-confluence-en--macro "note" contents)) + ((string-equal block-type "warning") + (ox-confluence-en--macro "warning" contents)) + (t (org-ascii-special-block special-block contents info))))) (defun ox-confluence-en-verbatim (verbatim contents info) "Transcode a VERBATIM element from Org to Confluence wiki markup.