I think the answer may be something like: (shell-command-to-string (concat "pandoc -f html -t org <<< '" :html "'" ) Though I'm not quite sure how to go about it just yet. On Mon, Jan 26, 2015 at 3:50 PM, Tory S. Anderson wrote: > man pandoc will be your friend. It guided me to the following simple > (interactive) use: > > pandoc -f html -t org > how are you? > I am good > *how are you?* /I am good/ > > I won't be able to help you much farther than that, though. > - Tory > > Matt Price writes: > > > That should be enough. I would need to feed a string form emacs to > > pandoc, then capture the output as a new string that can be output in > > the export filter. Do you know how to do that part? > > Thanks, > > Matt > > > > On Mon, Jan 26, 2015 at 3:31 PM, Tory S. Anderson > > wrote: > > > > 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 > > >