I'd like to define my own interpretor for special blocks for a custom backend.
I've written this sort of thing, mostly copy/pasting from the
(defun org-leanpub-special-block (special-block contents info) (replace-regexp-in-string "^" "A> " (org-remove-indentation (org-element-property :value special-block))))
I've also registered it as a translator and it's being called.
The goal is that this
#+BEGIN_aside /wibble/ wibble I'm a fish #+END_aside
will be rendered as
A> *wibble* A> wibble A> I'm a fish
(note that the text is processed by the usual processor, which is derived from markdown).
But the debugger is kicking in with
(replace-regexp-in-string "^" "A> " (org-remove-indentation (org-element-property :value special-block)))
which would imply that my call to
org-element-property is not doing what I thought. So how do I get the rendered version of the
(I plan on switching on the
TYPE of special block, but one step at a time...)