{"action":"created","issue":{"url":"https://api.github.com/repos/wooorm/mdast/issues/78","labels_url":"https://api.github.com/repos/wooorm/mdast/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/wooorm/mdast/issues/78/comments","events_url":"https://api.github.com/repos/wooorm/mdast/issues/78/events","html_url":"https://github.com/wooorm/mdast/pull/78","id":109405024,"number":78,"title":"Remove escape nodes","user":{"login":"eush77","id":4472489,"avatar_url":"https://avatars.githubusercontent.com/u/4472489?v=3","gravatar_id":"","url":"https://api.github.com/users/eush77","html_url":"https://github.com/eush77","followers_url":"https://api.github.com/users/eush77/followers","following_url":"https://api.github.com/users/eush77/following{/other_user}","gists_url":"https://api.github.com/users/eush77/gists{/gist_id}","starred_url":"https://api.github.com/users/eush77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eush77/subscriptions","organizations_url":"https://api.github.com/users/eush77/orgs","repos_url":"https://api.github.com/users/eush77/repos","events_url":"https://api.github.com/users/eush77/events{/privacy}","received_events_url":"https://api.github.com/users/eush77/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":30,"created_at":"2015-10-01T23:35:17Z","updated_at":"2015-12-15T10:38:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wooorm/mdast/pulls/78","html_url":"https://github.com/wooorm/mdast/pull/78","diff_url":"https://github.com/wooorm/mdast/pull/78.diff","patch_url":"https://github.com/wooorm/mdast/pull/78.patch"},"body":"This patch changes the parser so that it constructs regular `text` nodes instead of `escape` nodes and changes the compiler so that it escapes characters all by itself.\r\n\r\nAs a result, AST is simplified (no more escape nodes) and compilation becomes more reliable (a plugin can safely insert asterisks into the tree and it won't affect the compiled Markdown in an unexpected way).\r\n\r\nHowever, this is still a work in progress.\r\n\r\nI decided to implement the absolutely simplest approach first — that is, to make stringifier escape _every_ escapable character. As @wooorm warned in https://github.com/wooorm/mdast/issues/71#issuecomment-143448370, this results in _a lot_ of backslashes in the output (for example, `npm run build-md` with this patch changes a lot of docs). Every single period is escaped. This issue is still to be addressed.\r\n\r\nI open this PR for suggestions and feedback. Sorry it took me so long.\r\n\r\nClose #71."},"comment":{"url":"https://api.github.com/repos/wooorm/mdast/issues/comments/164721853","html_url":"https://github.com/wooorm/mdast/pull/78#issuecomment-164721853","issue_url":"https://api.github.com/repos/wooorm/mdast/issues/78","id":164721853,"user":{"login":"eush77","id":4472489,"avatar_url":"https://avatars.githubusercontent.com/u/4472489?v=3","gravatar_id":"","url":"https://api.github.com/users/eush77","html_url":"https://github.com/eush77","followers_url":"https://api.github.com/users/eush77/followers","following_url":"https://api.github.com/users/eush77/following{/other_user}","gists_url":"https://api.github.com/users/eush77/gists{/gist_id}","starred_url":"https://api.github.com/users/eush77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eush77/subscriptions","organizations_url":"https://api.github.com/users/eush77/orgs","repos_url":"https://api.github.com/users/eush77/repos","events_url":"https://api.github.com/users/eush77/events{/privacy}","received_events_url":"https://api.github.com/users/eush77/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T10:38:39Z","updated_at":"2015-12-15T10:38:39Z","body":"@wooorm Thank you!\n\nGood to know that `script/regenerate-fixtures.js` is built in. I have done this manually many times."}}