New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Org reader support for ATTR_HTML #1906
Comments
Agreed, this would be a very nice addition. I'm swamped with work, so any help is highly appreciated. Which reminds me: that the smart quotations issue, which you raised, is still open, too. Sorry about that. |
👍 I'm not a haskellite, but I'll take a look when I get a chance. |
👍 a workaround would be good. I'd just like to be able to add attributes to my revealjs |
workaround, it's evil (you need to know the
|
A `#+ATTR_HTML` line can be used to add custom attributes to certain blocks. The reader support this now for figures and tables. This closes jgm#1906.
Arbitrary key-value pairs can be added to some block types using a `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these when exporting to HTML, but since we cannot make this distinction here, the attributes are always added. The functionality is now supported for figures. This closes jgm#1906.
wow, nice! This will really help out next I'm writing a talk. |
will this work for the reveal.js |
How are The current code only works with figures, but it should be easy to add this to any element as long as the respective pandoc element has an |
They are level 1 or 2 headings in org-mode, when rendered to revealjs. I can point you at some talks if that helps but actually the simply example on the pandoc website might be enough. |
Is this really resolved?
should resolve to
however, the generated json does not contain the title:
|
This issue was mainly about figures. Please open a new issue for adding this to blocks in general. |
Similar to #1877, it would be nice for the org reader to support
#+ATTR_HTML
. This was mentioned on pandoc-discuss a while back, and seems useful for adding arbitrary HTML attributes to non-header elements; take images, for example:The text was updated successfully, but these errors were encountered: