mdformat
mdformat copied to clipboard
Compare parsed HTML
Note to self: This PR was made originally to fix https://github.com/executablebooks/mdformat/issues/353, and to help with any similar future issues. https://github.com/executablebooks/mdformat/issues/353 is now fixed though.
If no good reason comes up to do what this PR does, merging this should be avoided, as this introduces pure Python HTML parsing and a lot of object creation to every file format operation. Current naive HTML string comparison (even if with a few regex replacements) should be a lot faster.