On Tuesday, 27 Mar 2018 at 00:00, 42 147 wrote:
> Hello,
>
> I'm editing a large document, mostly text, that is intended for a
> website -- thus html is interspersed throughout, though not enough to
> justify editing the document as a dedicated .html file.

[...]

> Is there a way to switch back to org-mode via M-x org-mode while
> preserving the state of the open / closed headlines?

Can you not put the HTML within #+begin_export HTML ... #+end_export
blocks and then use org-edit-special (C-c ') to edit the HTML?  That
will put the block in HTML mode and leaving the edit buffer (C-c ') will
return you to your org file as it was when you invoked org-edit-special.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-474-g92785f

Attachment: signature.asc
Description: PGP signature

Reply via email to