emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Price <moptop99@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: allow HTML block to escape from outline-text div? WAS: BUG? unable to surround subtrees with html tag
Date: Mon, 21 Jun 2021 18:01:33 -0400	[thread overview]
Message-ID: <CAN_Dec9nHi6VQffCfWVnR-Za-JdnYi9cj-gu124_n42GBr8HJg@mail.gmail.com> (raw)
In-Reply-To: <CAN_Dec9HLGw3LiKsr2PiTMkmv=tJbFDdcn9iUMUHD=enMe8piQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1254 bytes --]

On Mon, Jun 21, 2021 at 3:07 PM Matt Price <moptop99@gmail.com> wrote:

> I'm using the most recent wip-cite-new branch of org, with a recent emacs
> git (28.0.50).
> I would like to be able to surround some portion of a subtree with a tag,
> e.g.:
> * parent
>   some text
> #+HTML: <div class="box">
> ** child 2
>   some boxed content
> ** child 2
>    more boxed content
>  #+HTML:</div>
> ** child 3
>   unboxed content
> However, org seems to close the div for me before the ~** child 2~
> headline.
> Is this the intended behaviour? And if so is there any way for me to do
> this?

Sorry for the noise, I believe this is user error.   I misread the exported
source code, and firefox's developer tools added the closing tag for me, so
I kept not seeing my mistake. The error here was not realizing that section
contents get wrapped in their own div with class ~outline-text-N~, so my
~<div class="box">~ resulted in malformed HTML.

I don't know if there is a way to somehow slide my own html in between the
outine-text element and the outline-container element for a child subtree.
If someone knows a way to do this, I'd appreciate a pointer, but for now I
think I have to find another way to accomplish this.

thanks & apologies,


[-- Attachment #2: Type: text/html, Size: 1875 bytes --]

  reply	other threads:[~2021-06-21 22:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-21 19:07 BUG? unable to surround subtrees with html tag Matt Price
2021-06-21 22:01 ` Matt Price [this message]
2021-06-22  8:30   ` allow HTML block to escape from outline-text div? WAS: " Richard Lawrence
2021-06-22 16:31     ` Matt Price
2021-07-01 16:18   ` Timothy
2021-07-06  3:58     ` Matt Price

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:

  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=CAN_Dec9nHi6VQffCfWVnR-Za-JdnYi9cj-gu124_n42GBr8HJg@mail.gmail.com \
    --to=moptop99@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).