When using the "Referenced text" option in the "Cross-reference" functionality (type = "Headings") in LibreOffice Writer, superscript/subscript text in the heading is not preserved. I don't know if it's a bug or it's the correct expected behaviour. See the file attached.
*** This bug has been marked as a duplicate of bug 159064 ***