-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
md2html not outputing <meta charset="UTF-8"> #231
Comments
Sorry, md2c is not our thing. This project only provides Markdown parser lib ( |
Sorry, it was a typo (md4c + md2html -> md2c, but should be md2html) |
Yes, As a workaround, you may use it without |
Thanks, this works fine for me
|
It may more-or-less work (with some browsers) but strictly speaking you generate invalid HTML that way.
and respective footer
|
Changes: * Changes mandated by CommonMark specification 0.31: - The specification expands set of Unicode characters seen by Markdown parser as a punctuation. Namely all Unicode general categories P (punctuation) and S (symbols) are now seen as such. - The definition of HTML comment has been changed so that `<!-->` and `<!--->` are also recognized as HTML comments. - HTML tags recognized as HTML block starting condition of type 4 has been updated, namely a tag `<source>` has been removed, whereas `<search>` added. Refer to [CommonMark 0.31.2](https://spec.commonmark.org/0.31.2/) for full specification. Fixes: - [#230](mity/md4c#230): The fix [#223](mity/md4c#223) in 0.5.1 release was incomplete and one corner case remained unfixed. This is now addressed. - [#231](mity/md4c#231): `md2html --full-html` now emits `<meta charset="UTF-8">` in the HTML header.
Hi,
I'm a complete noob in html and web, I'm trying to serve single page generated by md2html using nginx.
The problem is that my file is utf8-encoded and browsers show garbage instead of expected symbols. I've resolved this problem by adding
<meta charset="UTF-8">
to the beginning of the md2html output.Is it possible to add this tag automatically using md2html? Am I doing something wrong?
My nginx config:
The text was updated successfully, but these errors were encountered: