From mboxrd@z Thu Jan 1 00:00:00 1970 From: torys.anderson@gmail.com (Tory S. Anderson) Subject: Re: HTML --> Org-mode? Date: Mon, 26 Jan 2015 15:31:10 -0500 Message-ID: <87siex473l.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFqJX-0006hc-J8 for emacs-orgmode@gnu.org; Mon, 26 Jan 2015 15:31:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFqJU-0005SD-Tw for emacs-orgmode@gnu.org; Mon, 26 Jan 2015 15:31:15 -0500 Received: from mail-yh0-x22f.google.com ([2607:f8b0:4002:c01::22f]:37719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFqJU-0005S8-Qi for emacs-orgmode@gnu.org; Mon, 26 Jan 2015 15:31:12 -0500 Received: by mail-yh0-f47.google.com with SMTP id z6so4487622yhz.6 for ; Mon, 26 Jan 2015 12:31:12 -0800 (PST) In-Reply-To: (Matt Price's message of "Mon, 26 Jan 2015 15:15:59 -0500") 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: Matt Price Cc: Org Mode Using the magic wizard program Pandoc, I just had success with a simple little example: pandoc -o test.org test.html Input test.html: TEST strong!
Cell 1
Cell 2
Cell 3
Cell 4
Output test.org: *TEST strong!* Cell 1 Cell 2 Cell 3 Cell 4 I'm not sure how sophisticated the strings you are dealing with, but pandoc might do the trick for you. - Tory Matt Price writes: > Hmm, > > Looks like I asked this about a year ago and didn't follow up on it. > Does anyone know a way to generate org-mode syntax from an html > string? I would like to extend zotxt slightly (see my last post) and > at present zotxt can pull citations 7 bibliography entries from Zotero > only in plain-text and HTML form. The plaintext form loses > information, so I would like to translate the HTML into org-mode > syntax. > > Since this would have to happen in the context of an > > (org-add-link-type ) > > invocation, it would be best if this could be done directly in emacs > somehow... > > Thanks as always, > > Matt