[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Weird behavior of org-element-object-lex
From: |
Ihor Radchenko |
Subject: |
Re: Weird behavior of org-element-object-lex |
Date: |
Thu, 20 Oct 2022 09:56:51 +0000 |
Damien Cassou <damien@cassou.me> writes:
> (defun ox-linuxmag--item (item contents info)
> ...
> The reason `ox-linuxmag--item` has to parse ITEM again is because
> CONTENTS contains "<text:p text:style-name="Normal">item 1 ;</text:p>"
> which misses the initial dash "-" character: i.e., I would like "- item
> 1 ;" in the paragraph instead.
Just use ITEM.
You can access the contents of ITEM with org-element-contents.
If you just need to append the bullet, use (org-element-property :bullet item)
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>