Function: org-export-expand

org-export-expand is a byte-compiled function defined in ox.el.gz.

Signature

(org-export-expand BLOB CONTENTS &optional WITH-AFFILIATED)

Documentation

Expand a parsed element or object to its original state.

BLOB is either an element or an object. CONTENTS is its contents, as a string or nil.

When optional argument WITH-AFFILIATED is non-nil, add affiliated keywords before output.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox.el.gz
(defun org-export-expand (blob contents &optional with-affiliated)
  "Expand a parsed element or object to its original state.

BLOB is either an element or an object.  CONTENTS is its
contents, as a string or nil.

When optional argument WITH-AFFILIATED is non-nil, add affiliated
keywords before output."
  (let ((type (org-element-type blob)))
    (concat (and with-affiliated
		 (eq (org-element-class blob) 'element)
		 (org-element--interpret-affiliated-keywords blob))
	    (funcall (intern (format "org-element-%s-interpreter" type))
		     blob contents))))