emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "András Simonyi" <andras.simonyi@gmail.com>
To: Zachary Kanfer <zkanfer@gmail.com>
Cc: emacs-orgmode list <emacs-orgmode@gnu.org>
Subject: Re: Feature request: in org html export, option to disable id & class properties.
Date: Sat, 10 Jul 2021 09:41:34 +0200	[thread overview]
Message-ID: <CAOWRwxCOAfmDTiwvhxL_myqtSaLA6cWMzALtkYzheO1wT20hJw@mail.gmail.com> (raw)
In-Reply-To: <CAFXT+RPwrJjRTJ_N3RLGH+2Kg86-PSKXn+8HNi2Boiwk2AdAqg@mail.gmail.com>

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	other threads:[~2021-07-10  7:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-10  7:07 Feature request: in org html export, option to disable id & class properties Zachary Kanfer
2021-07-10  7:41 ` András Simonyi [this message]
2021-07-11  5:45   ` Zachary Kanfer
2021-10-03 15:57     ` Amin Bandali
2021-10-04  4:12       ` Zachary Kanfer
2021-10-04  5:01         ` Tim Cross
2021-10-04  6:17           ` New HTML exporter (was a feature request) Timothy
2021-10-04 14:19             ` Matt Price
2022-06-11  8:06             ` Ihor Radchenko
2022-06-11  8:25               ` Timothy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOWRwxCOAfmDTiwvhxL_myqtSaLA6cWMzALtkYzheO1wT20hJw@mail.gmail.com \
    --to=andras.simonyi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=zkanfer@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).