emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] parsing formatted text


From: Eric Schulte
Subject: Re: [Orgmode] parsing formatted text
Date: Fri, 29 Oct 2010 02:19:20 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

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 <address@hidden> 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.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode



reply via email to

[Prev in Thread] Current Thread [Next in Thread]