[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] convert html file into orgmode .org file?
From: |
brian powell |
Subject: |
Re: [O] convert html file into orgmode .org file? |
Date: |
Fri, 22 Jul 2011 12:53:25 -0400 |
* This worked for me:
** apt-get install pandoc
* Booted up an EMACS that has the menus enabled.
** Install pandoc-mode.el (see
http://wwwuser.gwdg.de/~jkremer/pandoc-mode.html )
** Goto buffer with .html doc in it.
*** Get OrgMode and PanDocMode running simultaneously in the same buffer.
** Click on the PanDoc menus in EMACS:
*** Chose PanDoc->Files->OutputFile->SetOutputFile (and I typed /tmp/test.org)
*** Chose PanDoc->OutputFormat->OrgMode
*** Chose PanDoc->RunPanDoc
* /tmp/test.org was created--looked pretty good; but, "your mileage
may vary"--depends on the structure of the HTML file.
** PanDoc has a lot of filetype conversions!
** I often use "html2csv" --by Author: Sébastien SAUVAGE <sebsauvage
at sebsauvage dot net> http://sebsauvage.net
*** And/or use PERL or EMACS to go the rest of the way.
Thanks Puneeth for the link to PanDoc (and the sublink to PanDocMode for EMACS)!
* PanDoc also has interesting file inclusion and elisp “double-at
directives”: See
http://wwwuser.gwdg.de/~jkremer/pandoc-mode-manual.pdf
** Someone sought to include the "markdown" in their doc I believe.
** Can do things like this (when using PanDoc/PanDoc-mode.el
@@include{blah.txt}
@@lisp{(format-time-string "%d %b %Y")}
On Thu, Jul 21, 2011 at 3:34 PM, Charles Philip Chan <address@hidden> wrote:
> <#secure method=pgpmime mode=sign>
> Puneeth Chaganti <address@hidden> writes:
>
>> Org-mode cannot import html files. But, you could try using Pandoc[1]
>> for this.
>>
>> [1] - http://johnmacfarlane.net/pandoc/
>
> There is also an Emacs mode for pandoc:
>
> http://user.uni-frankfurt.de/~kremers/pandoc-mode.html
>
> Charles
>
> --
> Why use Windows, since there is a door?
> (By address@hidden, Andre Fachat)
>
>