org-element: Clear text properties when interpreting a string
* lisp/org-element.el (org-element-interpret-data): Clear text properties when interpreting a string .
This commit is contained in:
parent
2eaed05e70
commit
c40a0dbd38
|
@ -4293,8 +4293,8 @@ Return Org syntax as a string."
|
|||
(mapconcat
|
||||
(lambda (obj) (org-element-interpret-data obj parent))
|
||||
(org-element-contents data) ""))
|
||||
;; Plain text.
|
||||
((stringp data) data)
|
||||
;; Plain text: remove `:parent' text property from output.
|
||||
((stringp data) (org-no-properties data))
|
||||
;; Element/Object without contents.
|
||||
((not (org-element-contents data))
|
||||
(funcall (intern (format "org-element-%s-interpreter" type))
|
||||
|
|
Loading…
Reference in New Issue