mvdkwast / obsidian-copy-as-html

Obsidian plugin: copy document as HTML, including images
MIT License
42 stars 11 forks source link

Add the <!DOCTYPE> declaration and the UTF-8 encoding attribute #55

Closed Ivan1248 closed 2 months ago

Ivan1248 commented 4 months ago

I suggest adding the lines

<!DOCTYPE html>

and

<meta charset="UTF-8">

to the HTML output so that validators don't report errors.

mvdkwast commented 2 months ago

Thanks @Ivan1248 (and @fetwar !), just checked it in a few editors, and no regressions from what I see, and indeed a good practice.