org-special-block-extras icon indicating copy to clipboard operation
org-special-block-extras copied to clipboard

Doesn't work with RevealJS HTML Backend

Open shivams opened this issue 2 years ago • 1 comments

I am using it as follows

#+begin_parallel [[color:orange][Are you excited to learn some Lisp?]] [[blue:Yes!]]

Pop-quiz: How does doc:apply work? #+end_parallel

In the HMTL backend,

it works fine.

However, when I export it to revealJS HTML

Using the org-reveal package, the generated HTML doesn't reflect the different columns as it does in plain HTML. As I inspect the generated HTML using the reveal backend, it has no special CSS inserted as it had in the plain HTML backend.

Please tick the following, by replacing [ ] with [X]

  1. [x] I am aware of the extensive documentation at http://alhassy.com/org-special-block-extras/
  2. [ ] I have read the documentation of doc:org-defblock
  3. [ ] I have checked some boxes without reading them.
  4. [ ] I am aware that (org-defblock X ⋯) gives me a Lisp function org-block/X that I can play with; e.g., C-h o org-block/shout shows a function with its docstring and arguments. We can press C-u C-x C-e at the end of the closing parens of (org-block/shout 'html "*Hello*, /world/!") to see what Org sees when it rewrites a shout block with the given string as its contents.

shivams avatar Jul 31 '23 23:07 shivams

This is because org-special-block-extras hardcodes backend checks based on strict equality (e.g. using (equal backend 'html) or (equal backend 'latex)) instead of using org-export-derived-backend-p from 'ox.

Perhaps @alhassy will have time to either fix it or review a patch that fixes it.

suhail-singh avatar May 01 '24 01:05 suhail-singh