{"action":"created","issue":{"url":"https://api.github.com/repos/bustle/mobiledoc-kit/issues/631","repository_url":"https://api.github.com/repos/bustle/mobiledoc-kit","labels_url":"https://api.github.com/repos/bustle/mobiledoc-kit/issues/631/labels{/name}","comments_url":"https://api.github.com/repos/bustle/mobiledoc-kit/issues/631/comments","events_url":"https://api.github.com/repos/bustle/mobiledoc-kit/issues/631/events","html_url":"https://github.com/bustle/mobiledoc-kit/issues/631","id":336206394,"node_id":"MDU6SXNzdWUzMzYyMDYzOTQ=","number":631,"title":"Migrating content to mobiledoc format - parsing html server side","user":{"login":"kmoskwiak","id":5294519,"node_id":"MDQ6VXNlcjUyOTQ1MTk=","avatar_url":"https://avatars2.githubusercontent.com/u/5294519?v=4","gravatar_id":"","url":"https://api.github.com/users/kmoskwiak","html_url":"https://github.com/kmoskwiak","followers_url":"https://api.github.com/users/kmoskwiak/followers","following_url":"https://api.github.com/users/kmoskwiak/following{/other_user}","gists_url":"https://api.github.com/users/kmoskwiak/gists{/gist_id}","starred_url":"https://api.github.com/users/kmoskwiak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmoskwiak/subscriptions","organizations_url":"https://api.github.com/users/kmoskwiak/orgs","repos_url":"https://api.github.com/users/kmoskwiak/repos","events_url":"https://api.github.com/users/kmoskwiak/events{/privacy}","received_events_url":"https://api.github.com/users/kmoskwiak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-27T12:23:49Z","updated_at":"2018-06-27T19:55:36Z","closed_at":null,"author_association":"NONE","body":"Hi!\r\nIs there a way to parse existing html to mobiledoc format server side? I want to migrate my content to mobiledoc format.\r\n\r\nIn node.js I was trying to do something like this:\r\n```js\r\nconst parser = require('../mobiledoc-kit/dist/commonjs/mobiledoc-kit/parsers/html').default;\r\nconst builder = require('../mobiledoc-kit/dist/commonjs/mobiledoc-kit/models/post-node-builder').default;\r\nconst p = new parser(builder);\r\np.parse('<p> hello </p>');\r\n```\r\nbut it requires browser environment  (error: `ReferenceError: document is not defined`);"},"comment":{"url":"https://api.github.com/repos/bustle/mobiledoc-kit/issues/comments/400808914","html_url":"https://github.com/bustle/mobiledoc-kit/issues/631#issuecomment-400808914","issue_url":"https://api.github.com/repos/bustle/mobiledoc-kit/issues/631","id":400808914,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDgwODkxNA==","user":{"login":"kmoskwiak","id":5294519,"node_id":"MDQ6VXNlcjUyOTQ1MTk=","avatar_url":"https://avatars2.githubusercontent.com/u/5294519?v=4","gravatar_id":"","url":"https://api.github.com/users/kmoskwiak","html_url":"https://github.com/kmoskwiak","followers_url":"https://api.github.com/users/kmoskwiak/followers","following_url":"https://api.github.com/users/kmoskwiak/following{/other_user}","gists_url":"https://api.github.com/users/kmoskwiak/gists{/gist_id}","starred_url":"https://api.github.com/users/kmoskwiak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmoskwiak/subscriptions","organizations_url":"https://api.github.com/users/kmoskwiak/orgs","repos_url":"https://api.github.com/users/kmoskwiak/repos","events_url":"https://api.github.com/users/kmoskwiak/events{/privacy}","received_events_url":"https://api.github.com/users/kmoskwiak/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T19:55:36Z","updated_at":"2018-06-27T19:55:36Z","author_association":"NONE","body":"@zfoster it would be great"}}
{"actor":{"display_login":"kmoskwiak"}}