alhassy/org-special-block-extras

Special blocks for `.docx` export

Opened this issue · 6 comments

I am desperately trying to get special blocks to export to .docx, but it won't work. At first I thought I was missing the right backend, but then I came to realize the problem lays deeper. Even defining this custom block did not yield any result:

(org-defblock satz nil (name "" label "") "Custom block for the custom satz-environment in LaTeX."
(print "hello!"))

For all .tex and .html, it is replaced by "hello!" every time.

It seems to me that something is converting the block before the formatting function of org-special-blocks-extra comes into play. What could the reason for that be, and what could you do about it?

Probably related to #32

I think that this hook doesnt trigger https://github.com/alhassy/org-special-block-extras/blob/master/org-special-block-extras.el#L100 i camt test it rn unfortunately

ox-html doesnt trigger it explicitly

I just evaluated the line and then exported again. This time, it worked. Why is "ox-html" relevant here? The conversion is done by pandoc.

Becuase ox-html works for me but org-thtml which is a derived backend doesnt

@Perangelot @MagicRB Could you please summarize what hook isn't being hit? How could we get it to be hit? Is just evaluating the code associated with that hook enough to make things work for .docx? If so, why don't we always run that code?