DTTG creates malformed formatted note in conversion from MD

When I convert an MD file to a formatted note in DTTG, this line is added to the HTML:
<meta charset="utf-8/">
That is an incorrect character set declaration, the line should read
<meta charset="utf8">

Also, the HTML is missing a document type, it should start with
<!DOCTYPE html>
to indicate that it’s an HTML5 document.

And perhaps setting the title to the name of the MD file (instead of “Text/Markdown preview”) might be appreciated.

There’s, BTW, no need to terminate HTML elements without closing tags (like meta, img, hr, br) with a / since HTML 5. The W3C HTML validator frowns upon those closing slashes.

2 Likes

Good observations! Noted.

There is an existing GitHub issue on document conversions.