{"action":"created","issue":{"url":"https://api.github.com/repos/MoOx/markdown-it-toc-and-anchor/issues/24","repository_url":"https://api.github.com/repos/MoOx/markdown-it-toc-and-anchor","labels_url":"https://api.github.com/repos/MoOx/markdown-it-toc-and-anchor/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/MoOx/markdown-it-toc-and-anchor/issues/24/comments","events_url":"https://api.github.com/repos/MoOx/markdown-it-toc-and-anchor/issues/24/events","html_url":"https://github.com/MoOx/markdown-it-toc-and-anchor/issues/24","id":153094717,"number":24,"title":"Since V4.0.0 this breaks other modules","user":{"login":"alinex","id":3606417,"avatar_url":"https://avatars.githubusercontent.com/u/3606417?v=3","gravatar_id":"","url":"https://api.github.com/users/alinex","html_url":"https://github.com/alinex","followers_url":"https://api.github.com/users/alinex/followers","following_url":"https://api.github.com/users/alinex/following{/other_user}","gists_url":"https://api.github.com/users/alinex/gists{/gist_id}","starred_url":"https://api.github.com/users/alinex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alinex/subscriptions","organizations_url":"https://api.github.com/users/alinex/orgs","repos_url":"https://api.github.com/users/alinex/repos","events_url":"https://api.github.com/users/alinex/events{/privacy}","received_events_url":"https://api.github.com/users/alinex/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-04T19:26:46Z","updated_at":"2016-05-05T21:47:24Z","closed_at":"2016-05-05T21:47:24Z","body":"It is a bit mysterious, since I updated this module some other markdown-it modules wont work like:\r\n\r\n- markdown-it-abbr\r\n- markdown-it-footnote\r\n\r\nIn both I got the same error: state.env is undefined and so this modules can't access its sub-properties.\r\nI didn't change anything in these and if I downgrade your module back to V3.1.0 everything is working again.\r\n\r\nDid you accidentally delete the state.env within markdown-it?\r\n\r\nHope you can fix this to get your new version working properly, again."},"comment":{"url":"https://api.github.com/repos/MoOx/markdown-it-toc-and-anchor/issues/comments/217289599","html_url":"https://github.com/MoOx/markdown-it-toc-and-anchor/issues/24#issuecomment-217289599","issue_url":"https://api.github.com/repos/MoOx/markdown-it-toc-and-anchor/issues/24","id":217289599,"user":{"login":"medfreeman","id":1805267,"avatar_url":"https://avatars.githubusercontent.com/u/1805267?v=3","gravatar_id":"","url":"https://api.github.com/users/medfreeman","html_url":"https://github.com/medfreeman","followers_url":"https://api.github.com/users/medfreeman/followers","following_url":"https://api.github.com/users/medfreeman/following{/other_user}","gists_url":"https://api.github.com/users/medfreeman/gists{/gist_id}","starred_url":"https://api.github.com/users/medfreeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medfreeman/subscriptions","organizations_url":"https://api.github.com/users/medfreeman/orgs","repos_url":"https://api.github.com/users/medfreeman/repos","events_url":"https://api.github.com/users/medfreeman/events{/privacy}","received_events_url":"https://api.github.com/users/medfreeman/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T21:47:24Z","updated_at":"2016-05-05T21:47:24Z","body":"Thanks,\r\nit is fixed in commit https://github.com/MoOx/markdown-it-toc-and-anchor/commit/a0675b80c9500f1cf42f0ff478c820288ac00845\r\nThe problem is that i forgot to initialize the environment on the second instance of markdown-it, that runs inside this plugin to allow toc generation from markdown while preventing an infinite loop.\r\nversion bump to 4.1.1"}}