[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] How to convert a string to Org parsed tree
From: |
Robert Klein |
Subject: |
Re: [O] How to convert a string to Org parsed tree |
Date: |
Sun, 28 Jul 2013 12:43:14 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 |
On 07/28/2013 12:18 PM, Yujie Wen wrote:
> 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 "<i>italic</i>"
>
> Is there any existing Org-mode functions can help me to achieve this
> kind of functionality?
>
> Regards,
> Yujie
>
Hi Yujie,
how about applying the exporter to the string, e.g. something like
(with-temp-buffer
(insert (plist-get plist yout-property-string))
(org-html-export-as-html nil nil nil t new-plist)
(buffer-string))
(didn't test, just typed this into the mail)
Best regards
Robert