{"action":"created","issue":{"url":"https://api.github.com/repos/markdown-it/markdown-it/issues/472","repository_url":"https://api.github.com/repos/markdown-it/markdown-it","labels_url":"https://api.github.com/repos/markdown-it/markdown-it/issues/472/labels{/name}","comments_url":"https://api.github.com/repos/markdown-it/markdown-it/issues/472/comments","events_url":"https://api.github.com/repos/markdown-it/markdown-it/issues/472/events","html_url":"https://github.com/markdown-it/markdown-it/issues/472","id":337771999,"node_id":"MDU6SXNzdWUzMzc3NzE5OTk=","number":472,"title":"Cannot read property 'references' of undefined ()","user":{"login":"1000ch","id":1800018,"node_id":"MDQ6VXNlcjE4MDAwMTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1800018?v=4","gravatar_id":"","url":"https://api.github.com/users/1000ch","html_url":"https://github.com/1000ch","followers_url":"https://api.github.com/users/1000ch/followers","following_url":"https://api.github.com/users/1000ch/following{/other_user}","gists_url":"https://api.github.com/users/1000ch/gists{/gist_id}","starred_url":"https://api.github.com/users/1000ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1000ch/subscriptions","organizations_url":"https://api.github.com/users/1000ch/orgs","repos_url":"https://api.github.com/users/1000ch/repos","events_url":"https://api.github.com/users/1000ch/events{/privacy}","received_events_url":"https://api.github.com/users/1000ch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-03T07:13:28Z","updated_at":"2018-07-03T07:30:27Z","closed_at":"2018-07-03T07:30:27Z","author_association":"NONE","body":"Found an error when I use markdown-it in [markdown-headings](https://github.com/1000ch/markdown-headings).\r\n\r\n```sh\r\nTypeError: Cannot read property 'references' of undefined\r\n    at Array.link (/Users/1000ch/workspace/github.com/1000ch/markdown-headings/node_modules/markdown-it/lib/rules_inline/link.js:101:26)\r\n    at ParserInline.tokenize (/Users/1000ch/workspace/github.com/1000ch/markdown-headings/node_modules/markdown-it/lib/parser_inline.js:135:22)\r\n    at ParserInline.parse (/Users/1000ch/workspace/github.com/1000ch/markdown-headings/node_modules/markdown-it/lib/parser_inline.js:163:8)\r\n    at Array.inline (/Users/1000ch/workspace/github.com/1000ch/markdown-headings/node_modules/markdown-it/lib/rules_core/inline.js:11:23)\r\n    at Core.process (/Users/1000ch/workspace/github.com/1000ch/markdown-headings/node_modules/markdown-it/lib/parser_core.js:51:13)\r\n    at MarkdownIt.parse (/Users/1000ch/workspace/github.com/1000ch/markdown-headings/node_modules/markdown-it/lib/index.js:523:13)\r\n    at module.exports.arg (/Users/1000ch/workspace/github.com/1000ch/markdown-headings/index.js:14:29)\r\n    at Promise.all.texts.map.text (/Users/1000ch/workspace/github.com/1000ch/markdown-headings/cli.js:18:48)\r\n    at Array.map (<anonymous>)\r\n    at globby.then.then.then.texts (/Users/1000ch/workspace/github.com/1000ch/markdown-headings/cli.js:18:36)\r\n```\r\n\r\n`env` (argument of `ParserInline.prototype.parse`) is `undefined` on some conditions."},"comment":{"url":"https://api.github.com/repos/markdown-it/markdown-it/issues/comments/402040632","html_url":"https://github.com/markdown-it/markdown-it/issues/472#issuecomment-402040632","issue_url":"https://api.github.com/repos/markdown-it/markdown-it/issues/472","id":402040632,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjA0MDYzMg==","user":{"login":"puzrin","id":319465,"node_id":"MDQ6VXNlcjMxOTQ2NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/319465?v=4","gravatar_id":"","url":"https://api.github.com/users/puzrin","html_url":"https://github.com/puzrin","followers_url":"https://api.github.com/users/puzrin/followers","following_url":"https://api.github.com/users/puzrin/following{/other_user}","gists_url":"https://api.github.com/users/puzrin/gists{/gist_id}","starred_url":"https://api.github.com/users/puzrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puzrin/subscriptions","organizations_url":"https://api.github.com/users/puzrin/orgs","repos_url":"https://api.github.com/users/puzrin/repos","events_url":"https://api.github.com/users/puzrin/events{/privacy}","received_events_url":"https://api.github.com/users/puzrin/received_events","type":"User","site_admin":false},"created_at":"2018-07-03T07:30:27Z","updated_at":"2018-07-03T07:30:27Z","author_association":"MEMBER","body":"Please use minimal reproducible sample, restricted to this package only.\r\n\r\nLooks you missed second mandatory param in `.parse()` / `.parseInline()` call."}}
{"actor":{"display_login":"puzrin"}}