The new function `pandoc.utils.stringify` converts any AST element to a string with formatting removed.