# DTTG creates malformed formatted note in conversion from MD

**URL:** https://discourse.devontechnologies.com/t/dttg-creates-malformed-formatted-note-in-conversion-from-md/81538
**Category:** Feedback
**Created:** [December 12, 2024, 9:16am UTC](https://discourse.devontechnologies.com/t/dttg-creates-malformed-formatted-note-in-conversion-from-md/81538 "2024-12-12T09:16:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![chrillek](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/chrillek/32/29340_2.png) [@chrillek](https://discourse.devontechnologies.com/u/chrillek)
#### Post date: [December 12, 2024, 9:16am UTC](https://discourse.devontechnologies.com/t/dttg-creates-malformed-formatted-note-in-conversion-from-md/81538/1 "2024-12-12T09:16:05Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![eboehnisch](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/eboehnisch/32/38699_2.png) [@eboehnisch](https://discourse.devontechnologies.com/u/eboehnisch)
#### Post date: [December 13, 2024, 8:18am UTC](https://discourse.devontechnologies.com/t/dttg-creates-malformed-formatted-note-in-conversion-from-md/81538/2 "2024-12-13T08:18:28Z")

</div>

Good observations! Noted.

---

<div class="post-metadata">

### Author: ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)
#### Post date: [December 13, 2024, 1:39pm UTC](https://discourse.devontechnologies.com/t/dttg-creates-malformed-formatted-note-in-conversion-from-md/81538/3 "2024-12-13T13:39:05Z")

</div>

There is an existing GitHub issue on document conversions.
