If I have the following line in an org-mode file


If I export to HTML, it becomes:


This applies the CSS I have for my <p tags around the <section> tag, resulting in a lot of unwanted padding.

If I use the following:

#+begin_export html

I get the tag without the <p> tags, but that's three lines of text just for a single tag.

For background, I'm trying to see if I can get tufte-css to work with org-mode's HTML export. The CSS requires headings to be wrapped in <section> tags.


Looks like

#+HTML: <section>

does the trick.

It adds the <section> without wrapping it in <p> tags.

  • Can you elaborate? What trick does it do? Why/how does this answer the question? – Drew Apr 1 at 4:06

Your Answer

