Skip to content
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

Doctype escaped as paragraph #48

Closed
paazmaya opened this issue Feb 28, 2015 · 1 comment
Closed

Doctype escaped as paragraph #48

paazmaya opened this issue Feb 28, 2015 · 1 comment

Comments

@paazmaya
Copy link

A template starting with the following HTML markup:

<!doctype html>
<html lang="en">

<head>

comes out as:

<p>&lt;!doctype html&gt;</p>
<html lang="en">

<head>

while using the latest release of metalsmith and metalsmith-templates, and tried with mustache, handlebars, and swig.

These are configured via metalsmith.json, that looks like:

{
  "source": "stories",
  "destination": "public_html",
  "plugins": {
    "metalsmith-templates": {
      "engine": "swig",
      "directory": "./templates",
      "default": "index.html"
    },
    "metalsmith-markdown": {
      "smartypants": true,
      "gfm": true,
      "tables": true
    }
  }
}
@paazmaya
Copy link
Author

In fact this seems to be related to metalsmith-markdown since with https://github.com/markdown-it/markdown-it and using the option html: true, the doctype comes out as expected (non escaped).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant