pelican-plugins / pandoc-reader

Pandoc Reader is a Pelican plugin that processes Markdown content via Pandoc
14 stars 3 forks source link

Make HTML string splitting efficient using partition #12

Closed nandac closed 3 years ago

nandac commented 3 years ago

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.

justinmayer commented 3 years ago

Nice work, Nanda. 🏅