Hello,
"Berry, Charles" <[email protected]> writes:
> So,
> : (format "{{<%s>}}\n%s{{<//%s>}}\n" type contents type)
>
> has the contents already parsed and transcoded which you do not want. So use
> something like:
>
> #+begin_src emacs-lisp
>
> (let ((raw-contents
> (buffer-substring-no-properties
> (org-element-property :contents-begin special-block)
> (org-element-property :contents-end special-block))))
> (format "{{<%s>}}\n%s{{<//%s>}}\n" type raw-contents type))
I suggest to use
(org-element-interpret-data (org-element-contents special-block))
Regards,
--
Nicolas Goaziou