From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert Krewinkel Subject: Re: Preserve formatting when copy/pasting from HTML Date: Wed, 21 May 2014 14:06:21 +0200 Message-ID: <87ha4jjpz6.fsf@caffelatte.moltkeplatz.de> References: <87tx8j9zo5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn5Hx-0005K4-95 for emacs-orgmode@gnu.org; Wed, 21 May 2014 08:06:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wn5Hs-0004w4-Mv for emacs-orgmode@gnu.org; Wed, 21 May 2014 08:06:29 -0400 Received: from moltkeplatz.de ([85.214.95.47]:35340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn5Hs-0004vy-D3 for emacs-orgmode@gnu.org; Wed, 21 May 2014 08:06:24 -0400 In-Reply-To: <87tx8j9zo5.fsf@gmail.com> (Tory S. Anderson's message of "Wed, 21 May 2014 06:47:06 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Tory S. Anderson" Cc: emacs-orgmode@gnu.org 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