Using string.partition() allowed me to extract the Pandoc metadata and HTML content in one go more efficiently than using string.splitstrings() which creates a new string for each element of the list.
This will speed up the processing when working with large files with many lines.
Using string.partition() allowed me to extract the Pandoc metadata and HTML content in one go more efficiently than using string.splitstrings() which creates a new string for each element of the list.
This will speed up the processing when working with large files with many lines.