{"action":"created","issue":{"url":"https://api.github.com/repos/Prettyhtml/prettyhtml/issues/29","repository_url":"https://api.github.com/repos/Prettyhtml/prettyhtml","labels_url":"https://api.github.com/repos/Prettyhtml/prettyhtml/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/Prettyhtml/prettyhtml/issues/29/comments","events_url":"https://api.github.com/repos/Prettyhtml/prettyhtml/issues/29/events","html_url":"https://github.com/Prettyhtml/prettyhtml/issues/29","id":363801986,"node_id":"MDU6SXNzdWUzNjM4MDE5ODY=","number":29,"title":"Do not add head/body/html etc","user":{"login":"octref","id":4033249,"node_id":"MDQ6VXNlcjQwMzMyNDk=","avatar_url":"https://avatars1.githubusercontent.com/u/4033249?v=4","gravatar_id":"","url":"https://api.github.com/users/octref","html_url":"https://github.com/octref","followers_url":"https://api.github.com/users/octref/followers","following_url":"https://api.github.com/users/octref/following{/other_user}","gists_url":"https://api.github.com/users/octref/gists{/gist_id}","starred_url":"https://api.github.com/users/octref/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octref/subscriptions","organizations_url":"https://api.github.com/users/octref/orgs","repos_url":"https://api.github.com/users/octref/repos","events_url":"https://api.github.com/users/octref/events{/privacy}","received_events_url":"https://api.github.com/users/octref/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-25T23:23:25Z","updated_at":"2018-09-29T10:06:31Z","closed_at":"2018-09-29T10:06:31Z","author_association":"NONE","body":"```js\r\nconst prettyhtml = require('@starptech/prettyhtml')\r\n\r\nconst input = `\r\n<template>\r\n  <div id=\"app\">\r\n    <header class=\"header\">\r\n      <nav class=\"inner\">\r\n        <router-link to=\"/\" exact>\r\n          <img class=\"logo\" src=\"~public/logo-48.png\" alt=\"logo\">\r\n        </router-link>\r\n        <router-link to=\"/top\">Top</router-link>\r\n        <router-link to=\"/new\">New</router-link>\r\n        <router-link to=\"/show\">Show</router-link>\r\n        <router-link to=\"/ask\">Ask</router-link>\r\n        <router-link to=\"/job\">Jobs</router-link>\r\n        <a class=\"github\" href=\"https://github.com/vuejs/vue-hackernews-2.0\" target=\"_blank\" rel=\"noopener\">\r\n          Built with Vue.js\r\n        </a>\r\n      </nav>\r\n    </header>\r\n    <transition name=\"fade\" mode=\"out-in\">\r\n      <router-view class=\"view\"></router-view>\r\n    </transition>\r\n  </div>\r\n</template>\r\n`\r\n\r\nconsole.log(prettyhtml(input))\r\n```\r\n\r\nI'm wondering why the result is:\r\n\r\n```html\r\n<html>\r\n<head>\r\n  <template>\r\n    <div id=\"app\">\r\n      <header class=\"header\">\r\n        <nav class=\"inner\">\r\n          <router-link to=\"/\" exact>\r\n            <img class=\"logo\" src=\"~public/logo-48.png\" alt=\"logo\">\r\n          </router-link>\r\n          <router-link to=\"/top\">Top</router-link>\r\n          <router-link to=\"/new\">New</router-link>\r\n          <router-link to=\"/show\">Show</router-link>\r\n          <router-link to=\"/ask\">Ask</router-link>\r\n          <router-link to=\"/job\">Jobs</router-link>\r\n          <a\r\n            class=\"github\"\r\n            href=\"https://github.com/vuejs/vue-hackernews-2.0\"\r\n            target=\"_blank\"\r\n            rel=\"noopener\"\r\n          >Built with Vue.js</a>\r\n        </nav>\r\n      </header>\r\n      <transition name=\"fade\" mode=\"out-in\">\r\n        <router-view class=\"view\"></router-view>\r\n      </transition>\r\n    </div>\r\n  </template>\r\n</head>\r\n<body></body>\r\n</html>\r\n```\r\n\r\nIMO the default behavior should be just formatting the input, not wrapping anything around it."},"comment":{"url":"https://api.github.com/repos/Prettyhtml/prettyhtml/issues/comments/425633321","html_url":"https://github.com/Prettyhtml/prettyhtml/issues/29#issuecomment-425633321","issue_url":"https://api.github.com/repos/Prettyhtml/prettyhtml/issues/29","id":425633321,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTYzMzMyMQ==","user":{"login":"StarpTech","id":1764424,"node_id":"MDQ6VXNlcjE3NjQ0MjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1764424?v=4","gravatar_id":"","url":"https://api.github.com/users/StarpTech","html_url":"https://github.com/StarpTech","followers_url":"https://api.github.com/users/StarpTech/followers","following_url":"https://api.github.com/users/StarpTech/following{/other_user}","gists_url":"https://api.github.com/users/StarpTech/gists{/gist_id}","starred_url":"https://api.github.com/users/StarpTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StarpTech/subscriptions","organizations_url":"https://api.github.com/users/StarpTech/orgs","repos_url":"https://api.github.com/users/StarpTech/repos","events_url":"https://api.github.com/users/StarpTech/events{/privacy}","received_events_url":"https://api.github.com/users/StarpTech/received_events","type":"User","site_admin":false},"created_at":"2018-09-29T10:06:31Z","updated_at":"2018-09-29T10:06:31Z","author_association":"MEMBER","body":"The new parser was released in `0.1.0`. I can't reproduce it anymore."}}
{"actor":{"display_login":"StarpTech"}}