From 79b5e9ccda93e24d8992d4c45862086858792a32 Mon Sep 17 00:00:00 2001 From: Patrick Hetu Date: Tue, 6 Oct 2015 12:24:49 -0400 Subject: [PATCH] use SPECIAL-BLOCK for admonitions --- ox-rst.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ox-rst.el b/ox-rst.el index 91b3a74..47fb5a2 100644 --- a/ox-rst.el +++ b/ox-rst.el @@ -1309,7 +1309,10 @@ holding contextual information." "Transcode a SPECIAL-BLOCK element from Org to reStructuredText. CONTENTS holds the contents of the block. INFO is a plist holding contextual information." - contents) + (let ((type (org-element-property :type special-block))) + (format ".. %s::\n%s\n" + type + (org-rst--indent-string contents org-rst-quote-margin)))) ;;;; Src Block