From: "Eric Schulte" <schulte.eric@gmail.com>
To: Aidan Gauland <aidalgol@no8wireless.co.nz>
Cc: emacs-orgmode@gnu.org
Subject: Re: parsing formatted text
Date: Fri, 29 Oct 2010 02:19:20 -0600 [thread overview]
Message-ID: <87iq0lv2bb.fsf@gmail.com> (raw)
In-Reply-To: <loom.20101029T094324-433@post.gmane.org> (Aidan Gauland's message of "Fri, 29 Oct 2010 07:50:17 +0000 (UTC)")
Hi Aidan,
You could pass the text through the `org-export-string' function to
generate a string of HTML from a string of Org markup.
e.g.
(org-export-string "plain plain *bold* plain" "html")
returns the following string
"<p>plain plain <b>bold</b> plain</p>"
-- Eric
Aidan Gauland <aidalgol@no8wireless.co.nz> writes:
> Hello,
>
> I have written an elisp program to generate an ATOM feed from an
> org-mode file. I want to generate appropiate HTML from fromatted text
> (such as *bold* and /italic/). Since it does not use org's export
> module (for which this isn't really appropriate anyway), I have no
> idea if there is any way I can use existing org functions to parse a
> paragraph to recognise formatted text so I can process it
> appropriately, or if I must write my own parsing code. Can any of the
> more experienced org-mode hackers offer any advice?
>
> Thanks,
> Aidan Gauland
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-10-29 8:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-29 7:50 parsing formatted text Aidan Gauland
2010-10-29 8:19 ` Eric Schulte [this message]
2010-10-29 8:58 ` Aidan Gauland
2010-10-29 19:59 ` Aidan Gauland
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iq0lv2bb.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=aidalgol@no8wireless.co.nz \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.