emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Felix Natter <fnatter@gmx.net>
To: emacs-orgmode@gnu.org
Subject: Code to convert lists etc. to HTML for org-mode export filter?
Date: Sun, 31 Aug 2014 11:22:02 +0200	[thread overview]
Message-ID: <87bnr1f1z9.fsf@bitburger.home.felix> (raw)

hi,

I am working on org-freeplane.el, a fork of org-freemind.el [1].

[1] FreeMind and Freeplane are mind mapping programs and can thus
be used to organize tree-structured information like org-mode does.
Freeplane is a FreeMind fork, org-freeplane.el was necessary because
users want to use the features of Freeplane.

Can someone please point me to the code for converting node text to
HTML in org-mode?
The following code:

* item1
- one
- two
- three

should result in a mind map node with content:

item1
<ul>
  <li>one</li>
  <li>two</li>
  <li>three</li>
</ul>

(of course there are more complex examples, like nested lists etc.)

Is there common code for exporting to HTML (3.2 in my case)?
Shall I import org-html.el in org-freeplane.el and use code from that?
(I think that wouldn't be trivial because 'org-export-as-html' 
does a lot of stuff that I may not require/allow like running hooks...)

Thanks and Best Regards,
-- 
Felix Natter

             reply	other threads:[~2014-09-01  8:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-31  9:22 Felix Natter [this message]
2014-09-01  9:05 ` Code to convert lists etc. to HTML for org-mode export filter? Thorsten Jolitz
2014-09-01 17:20   ` ox-freemind.el / org-freemind.el (was: Re: Code to convert lists etc. to HTML for org-mode export filter?) Felix Natter
2014-09-01 18:18     ` ox-freemind.el / org-freemind.el Thorsten Jolitz
2014-09-02  8:53       ` Felix Natter
2014-09-02  9:45         ` Thorsten Jolitz

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bnr1f1z9.fsf@bitburger.home.felix \
    --to=fnatter@gmx.net \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).