{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/4880","repository_url":"https://api.github.com/repos/jgm/pandoc","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/4880/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/4880/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/4880/events","html_url":"https://github.com/jgm/pandoc/issues/4880","id":358150438,"node_id":"MDU6SXNzdWUzNTgxNTA0Mzg=","number":4880,"title":"comments in tex math can cause problems","user":{"login":"jgm","id":3044,"node_id":"MDQ6VXNlcjMwNDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3044?v=4","gravatar_id":"","url":"https://api.github.com/users/jgm","html_url":"https://github.com/jgm","followers_url":"https://api.github.com/users/jgm/followers","following_url":"https://api.github.com/users/jgm/following{/other_user}","gists_url":"https://api.github.com/users/jgm/gists{/gist_id}","starred_url":"https://api.github.com/users/jgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgm/subscriptions","organizations_url":"https://api.github.com/users/jgm/orgs","repos_url":"https://api.github.com/users/jgm/repos","events_url":"https://api.github.com/users/jgm/events{/privacy}","received_events_url":"https://api.github.com/users/jgm/received_events","type":"User","site_admin":false},"labels":[{"id":423176029,"node_id":"MDU6TGFiZWw0MjMxNzYwMjk=","url":"https://api.github.com/repos/jgm/pandoc/labels/format:LaTeX","name":"format:LaTeX","color":"c2e0c6","default":false},{"id":484597970,"node_id":"MDU6TGFiZWw0ODQ1OTc5NzA=","url":"https://api.github.com/repos/jgm/pandoc/labels/writer","name":"writer","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-07T17:29:19Z","updated_at":"2018-09-13T16:45:24Z","closed_at":null,"author_association":"OWNER","body":"Simple example:\r\n\r\n```\r\n% pandoc -t latex\r\n$hi%there$\r\n\\(hi%there\\)\r\n```\r\n\r\nPossible solutions:\r\n\r\n1.  Strip all comments from tex math before including in the AST.\r\n2. Tokenize tex math before writing as LaTeX, and if it ends with a comment, add a newline.\r\n\r\n(Note:  we don't in general want to add a newline, because pandoc's markdown needs the closing `$` to be adjacent to non-whitespace.)\r\n"},"comment":{"url":"https://api.github.com/repos/jgm/pandoc/issues/comments/421073910","html_url":"https://github.com/jgm/pandoc/issues/4880#issuecomment-421073910","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/4880","id":421073910,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTA3MzkxMA==","user":{"login":"jgm","id":3044,"node_id":"MDQ6VXNlcjMwNDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3044?v=4","gravatar_id":"","url":"https://api.github.com/users/jgm","html_url":"https://github.com/jgm","followers_url":"https://api.github.com/users/jgm/followers","following_url":"https://api.github.com/users/jgm/following{/other_user}","gists_url":"https://api.github.com/users/jgm/gists{/gist_id}","starred_url":"https://api.github.com/users/jgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgm/subscriptions","organizations_url":"https://api.github.com/users/jgm/orgs","repos_url":"https://api.github.com/users/jgm/repos","events_url":"https://api.github.com/users/jgm/events{/privacy}","received_events_url":"https://api.github.com/users/jgm/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T16:45:24Z","updated_at":"2018-09-13T16:45:24Z","author_association":"OWNER","body":"> Which would still not be interpreted as a comment.\r\n\r\nYes it would (in latex, but not in pandoc's markdown).\r\nWe're talking about writing LaTeX here - also, we use `\\(..\\)` delimiters, so the output would be\r\n```\r\n\\(\\sin %test\r\n\\)\r\n```\r\n"}}
{"actor":{"display_login":"jgm"}}