emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: "Tory S. Anderson" <torys.anderson@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Preserve formatting when copy/pasting from HTML
Date: Wed, 21 May 2014 14:04:32 +0200	[thread overview]
Message-ID: <87a9abxrqn.fsf@bzg.ath.cx> (raw)
In-Reply-To: <87tx8j9zo5.fsf@gmail.com> (Tory S. Anderson's message of "Wed, 21 May 2014 06:47:06 -0400")

Hi Tory,

torys.anderson@gmail.com (Tory S. Anderson) writes:

> We often read online articles with headings and sometimes
> subheadings. They may also include bold, italic, and hyperlinks, all
> of which are supported by Org. Is there any way to preserve this
> formatting if I copy-paste into org/emacs, the same way it's preserved
> when I paste into Word or into a Google Document/email? Or is this
> fundamentally difficult in emacs? It would be a tremendous feature.

It would be easy to code something that sometimes works, with a dumb
parsing of the most common HTML tags and rendering into Org syntax.
But this would be really fragile and doing it right is fundamentally
difficult.

I'd love to see someone proves me I'm too pessimistic, though.

Best,

-- 
 Bastien

  reply	other threads:[~2014-05-21 12:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-21 10:47 Preserve formatting when copy/pasting from HTML Tory S. Anderson
2014-05-21 12:04 ` Bastien [this message]
2014-05-21 12:06 ` Albert Krewinkel
2014-05-23 17:31   ` Tory S. Anderson
2014-05-21 18:52 ` Ilya Shlyakhter

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=87a9abxrqn.fsf@bzg.ath.cx \
    --to=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=torys.anderson@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).