This is an adaptation of the turndown libraries to convert HTML to Markdown.

This port aims to be compatible with the Javascript code and uses the
same test suite. But the original library does not pass its tests and
the Joplin part does not use the original tests.
