{"action":"created","issue":{"url":"https://api.github.com/repos/michael-brade/LaTeX.js/issues/21","repository_url":"https://api.github.com/repos/michael-brade/LaTeX.js","labels_url":"https://api.github.com/repos/michael-brade/LaTeX.js/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/michael-brade/LaTeX.js/issues/21/comments","events_url":"https://api.github.com/repos/michael-brade/LaTeX.js/issues/21/events","html_url":"https://github.com/michael-brade/LaTeX.js/issues/21","id":361139325,"node_id":"MDU6SXNzdWUzNjExMzkzMjU=","number":21,"title":"newline rule","user":{"login":"johnwebner","id":38671577,"node_id":"MDQ6VXNlcjM4NjcxNTc3","avatar_url":"https://avatars2.githubusercontent.com/u/38671577?v=4","gravatar_id":"","url":"https://api.github.com/users/johnwebner","html_url":"https://github.com/johnwebner","followers_url":"https://api.github.com/users/johnwebner/followers","following_url":"https://api.github.com/users/johnwebner/following{/other_user}","gists_url":"https://api.github.com/users/johnwebner/gists{/gist_id}","starred_url":"https://api.github.com/users/johnwebner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnwebner/subscriptions","organizations_url":"https://api.github.com/users/johnwebner/orgs","repos_url":"https://api.github.com/users/johnwebner/repos","events_url":"https://api.github.com/users/johnwebner/events{/privacy}","received_events_url":"https://api.github.com/users/johnwebner/received_events","type":"User","site_admin":false},"labels":[{"id":306820429,"node_id":"MDU6TGFiZWwzMDY4MjA0Mjk=","url":"https://api.github.com/repos/michael-brade/LaTeX.js/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"michael-brade","id":8768950,"node_id":"MDQ6VXNlcjg3Njg5NTA=","avatar_url":"https://avatars0.githubusercontent.com/u/8768950?v=4","gravatar_id":"","url":"https://api.github.com/users/michael-brade","html_url":"https://github.com/michael-brade","followers_url":"https://api.github.com/users/michael-brade/followers","following_url":"https://api.github.com/users/michael-brade/following{/other_user}","gists_url":"https://api.github.com/users/michael-brade/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-brade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-brade/subscriptions","organizations_url":"https://api.github.com/users/michael-brade/orgs","repos_url":"https://api.github.com/users/michael-brade/repos","events_url":"https://api.github.com/users/michael-brade/events{/privacy}","received_events_url":"https://api.github.com/users/michael-brade/received_events","type":"User","site_admin":false},"assignees":[{"login":"michael-brade","id":8768950,"node_id":"MDQ6VXNlcjg3Njg5NTA=","avatar_url":"https://avatars0.githubusercontent.com/u/8768950?v=4","gravatar_id":"","url":"https://api.github.com/users/michael-brade","html_url":"https://github.com/michael-brade","followers_url":"https://api.github.com/users/michael-brade/followers","following_url":"https://api.github.com/users/michael-brade/following{/other_user}","gists_url":"https://api.github.com/users/michael-brade/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-brade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-brade/subscriptions","organizations_url":"https://api.github.com/users/michael-brade/orgs","repos_url":"https://api.github.com/users/michael-brade/repos","events_url":"https://api.github.com/users/michael-brade/events{/privacy}","received_events_url":"https://api.github.com/users/michael-brade/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-09-18T05:18:45Z","updated_at":"2018-09-20T21:14:16Z","closed_at":"2018-09-19T04:10:33Z","author_association":"NONE","body":"Shouldn't '\\r' be after '\\r\\n'? Like [here](https://github.com/pegjs/pegjs/blob/4964b9af7e33a1c804eaff21d337d0d0926f9717/src/parser.pegjs#L251-L256)\r\n\r\nhttps://github.com/michael-brade/LaTeX.js/blob/a5b822ba25af9aae8d15564bf2cbf1b05dbbb9aa/src/latex-parser.pegjs#L827\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/michael-brade/LaTeX.js/issues/comments/423335569","html_url":"https://github.com/michael-brade/LaTeX.js/issues/21#issuecomment-423335569","issue_url":"https://api.github.com/repos/michael-brade/LaTeX.js/issues/21","id":423335569,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzMzNTU2OQ==","user":{"login":"michael-brade","id":8768950,"node_id":"MDQ6VXNlcjg3Njg5NTA=","avatar_url":"https://avatars0.githubusercontent.com/u/8768950?v=4","gravatar_id":"","url":"https://api.github.com/users/michael-brade","html_url":"https://github.com/michael-brade","followers_url":"https://api.github.com/users/michael-brade/followers","following_url":"https://api.github.com/users/michael-brade/following{/other_user}","gists_url":"https://api.github.com/users/michael-brade/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-brade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-brade/subscriptions","organizations_url":"https://api.github.com/users/michael-brade/orgs","repos_url":"https://api.github.com/users/michael-brade/repos","events_url":"https://api.github.com/users/michael-brade/events{/privacy}","received_events_url":"https://api.github.com/users/michael-brade/received_events","type":"User","site_admin":false},"created_at":"2018-09-20T21:14:16Z","updated_at":"2018-09-20T21:14:16Z","author_association":"OWNER","body":"This is really interesting. Even with the new (and correct) code, LaTeX.js/PEG.js never matches the `\\r\\n` char sequence. Only `\\r` or `\\n`, and if it is `\\r`, the `\\n` that follows it seems to be eaten by something else. This may be a bug in PEG.js. I don't know yet. So my question to you, since you seem to be using Windows: is it possible for you to use this rule\r\n```\r\nnl \"newline\"  = \"\\n\"  { console.log(\"n\") } / \"\\r\\n\" { console.log(\"rn\") } / \"\\r\" { console.log(\"r\") }\r\n```\r\nand run it on a file with Windows EOLs and two or three lines, and then send me the console output?"}}
{"actor":{"display_login":"michael-brade"}}