emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature request: in org html export, option to disable id & class pr


From: Zachary Kanfer
Subject: Re: Feature request: in org html export, option to disable id & class properties.
Date: Sun, 11 Jul 2021 01:45:58 -0400

That is an interesting exporter. Is it actually part of orgmode? I don't see it in the org repository. I don't want to rely on downloading something from an archived repository that won't get bugfixes.

On Sat, Jul 10, 2021 at 3:41 AM András Simonyi <andras.simonyi@gmail.com> wrote:
Hello,
I'm not really familiar with the internals of the built-in html
exporter but the slimhtml exporter
[https://github.com/balddotcat/ox-slimhtml]  might be closer to what
you're looking for.

best regards,
András

On Sat, 10 Jul 2021 at 09:08, Zachary Kanfer <zkanfer@gmail.com> wrote:
>
> When I export this sample org file:
>
>     * top-level header
>     ** and here we have #2
>
> The body of the generated html has this content:
>
>     <div id="content">
>       <h1 class="title">top-level header</h1>
>       <div id="outline-container-orgd9fc9e6" class="outline-2">
>         <h2 id="orgd9fc9e6">and here we have #2</h2>
>       </div>
>     </div>
>
> I would prefer the html to not have these id or class properties; something like this:
>
>     <div>
>       <h1>top-level header</h1>
>       <div>
>         <h2>and here we have #2</h2>
>       </div>
>     </div>
>
> Actually, I'd rather skip the divs entirely, but that is a separate issue. Could there be a configurable way to disable the creation of these properties? I have searched the mailing list, and have not found anything. Perhaps I've missed something; there are a lot of results for "html class id" or similar searches. Thanks.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]