From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yujie Wen Subject: Re: How to convert a string to Org parsed tree Date: Sun, 28 Jul 2013 22:16:47 +0800 Message-ID: References: <87ppu2516k.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b15ac23baa28004e29306cb Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3RmF-0001GH-9q for emacs-orgmode@gnu.org; Sun, 28 Jul 2013 10:16:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3RmC-0005vh-Oe for emacs-orgmode@gnu.org; Sun, 28 Jul 2013 10:16:51 -0400 Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]:38968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3RmC-0005vW-Gr for emacs-orgmode@gnu.org; Sun, 28 Jul 2013 10:16:48 -0400 Received: by mail-pa0-f44.google.com with SMTP id jh10so4947223pab.17 for ; Sun, 28 Jul 2013 07:16:47 -0700 (PDT) In-Reply-To: <87ppu2516k.fsf@ericabrahamsen.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org Mode" --047d7b15ac23baa28004e29306cb Content-Type: text/plain; charset=ISO-8859-1 Hi, Robert, Nicolas and Eric, Thanks to all of you for the kind answers. org-export-data-with-backend and org-element-parse-secondary-string best meet my requirements. They worked just as I expected. Thanks again. Regards, Yujie 2013/7/28 Eric Abrahamsen > Yujie Wen writes: > > > Hi, > > > > I am working on the org-reveal exporter and I need to convert a > > string get from org-element-property into HTML format. The property > > string have some Org-mode markups that need to be converted to > > relevant HTML labels. For example, a string of "/italic/" to " > > italic" > > > > Is there any existing Org-mode functions can help me to achieve > > this kind of functionality? > > > > Regards, > > Yujie > > Try out `org-export-string-as', that will probably do what you want... > > E > > > --047d7b15ac23baa28004e29306cb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi, Robert, Nicolas and Eric,

= =A0 Thanks to all of you for the kind answers. org-export-data-with-backend= and org-element-parse-secondary-string best meet my requirements. They wor= ked just as I expected. Thanks again.

Regards,
Yujie
=A0


2013/7/28 Eric = Abrahamsen <eric@ericabrahamsen.net>
Yuji= e Wen <yjwen.ty@gmail.com> = writes:

> Hi,
>
> =A0 I am working on the org-reveal exporter and I need to convert a > string get from org-element-property into HTML format. The property > string have some Org-mode markups that need to be converted to
> relevant HTML labels. For example, a string of "/italic/" to= "<i>
> italic</i>"
>
> =A0 Is there any existing Org-mode functions can help me to achieve > this kind of functionality?
>
> Regards,
> Yujie

Try out `org-export-string-as', that will probably do what = you want...

E



--047d7b15ac23baa28004e29306cb--