From: Albert Krewinkel <tarleb@moltkeplatz.de>
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:06:21 +0200 [thread overview]
Message-ID: <87ha4jjpz6.fsf@caffelatte.moltkeplatz.de> (raw)
In-Reply-To: <87tx8j9zo5.fsf@gmail.com> (Tory S. Anderson's message of "Wed, 21 May 2014 06:47:06 -0400")
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.
A suggestion for a workaround: You might get decent results using
Pandoc[1] and pandoc-mode[2]. Pandoc can parse HTML and convert it to
org-mode markup. There is also a helpful answer on stackexchange[3]
(just replace "markdown" with "org). You might be able to use the above
tools to integrate the mentioned techniques into org's capture mechanism.
HTH,
Albert
[1] http://johnmacfarlane.net/pandoc
[2] https://github.com/joostkremers/pandoc-mode
[3] http://unix.stackexchange.com/questions/78395/
--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124
next prev parent reply other threads:[~2014-05-21 12:06 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
2014-05-21 12:06 ` Albert Krewinkel [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ha4jjpz6.fsf@caffelatte.moltkeplatz.de \
--to=tarleb@moltkeplatz.de \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.