mb...@mbork.pl writes: > I am reading the Org element API docs and I don't understand the > difference between :raw-value of a headline and its :title. I performed > a few experiments with putting various things in the headline > (timestamps, links, markup) to find a case where these two differ, but I > could not. > > The :title is described as a "secondary string". What is a "secondary > string"? Maybe if I knew that, I would understand the difference...?
Check out "secondary nodes" in lisp/org-element-ast.el comment. TL;DR: Secondary string is a parsed Org markup, as an "anonymous node" (list of Org markup objects). For headings, things are a little tricky though - while :raw-title always contain unparsed "raw" title text, :title may, depending on the parser mode, either be a copy of :raw-title or contain the parsed secondary string. -- 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>