{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/4700","repository_url":"https://api.github.com/repos/jgm/pandoc","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/4700/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/4700/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/4700/events","html_url":"https://github.com/jgm/pandoc/issues/4700","id":331510930,"node_id":"MDU6SXNzdWUzMzE1MTA5MzA=","number":4700,"title":"Label figure and centering not converted from latex to markdown","user":{"login":"louisabraham","id":13174805,"node_id":"MDQ6VXNlcjEzMTc0ODA1","avatar_url":"https://avatars0.githubusercontent.com/u/13174805?v=4","gravatar_id":"","url":"https://api.github.com/users/louisabraham","html_url":"https://github.com/louisabraham","followers_url":"https://api.github.com/users/louisabraham/followers","following_url":"https://api.github.com/users/louisabraham/following{/other_user}","gists_url":"https://api.github.com/users/louisabraham/gists{/gist_id}","starred_url":"https://api.github.com/users/louisabraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/louisabraham/subscriptions","organizations_url":"https://api.github.com/users/louisabraham/orgs","repos_url":"https://api.github.com/users/louisabraham/repos","events_url":"https://api.github.com/users/louisabraham/events{/privacy}","received_events_url":"https://api.github.com/users/louisabraham/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":484597898,"node_id":"MDU6TGFiZWw0ODQ1OTc4OTg=","url":"https://api.github.com/repos/jgm/pandoc/labels/reader","name":"reader","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-12T09:35:14Z","updated_at":"2018-06-12T10:36:19Z","closed_at":null,"author_association":"NONE","body":"I used\r\n\r\n    pandoc -f latex -t markdown | pandoc -f markdown -t latex\r\n\r\nwith the input \r\n\r\n    \\begin{figure}\r\n      \\centering\r\n      \\includegraphics{figures/fig1.pdf}\r\n      \\caption{blablabla}\r\n      \\label{fig1}\r\n    \\end{figure}\r\n\r\ngives the output\r\n\r\n    \\centering\r\n\r\n    \\begin{figure}\r\n    \\centering\r\n    \\includegraphics{figures/fig1.pdf}\r\n    \\caption{blablabla{}}\r\n    \\end{figure}\r\n\r\nfor information, the markdown intermediary output is\r\n\r\n    \\centering\r\n    ![blablabla[]{label=\"fig1\"}](figures/fig1.pdf)\r\n\r\nMy problem is that the label is not converted, it should do something like\r\n\r\n    ![blablabla\\label{fig1}](figures/fig1.pdf)\r\n\r\nYou can observe that `\\centering` is used twice too."},"comment":{"url":"https://api.github.com/repos/jgm/pandoc/issues/comments/396544665","html_url":"https://github.com/jgm/pandoc/issues/4700#issuecomment-396544665","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/4700","id":396544665,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjU0NDY2NQ==","user":{"login":"mb21","id":157497,"node_id":"MDQ6VXNlcjE1NzQ5Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/157497?v=4","gravatar_id":"","url":"https://api.github.com/users/mb21","html_url":"https://github.com/mb21","followers_url":"https://api.github.com/users/mb21/followers","following_url":"https://api.github.com/users/mb21/following{/other_user}","gists_url":"https://api.github.com/users/mb21/gists{/gist_id}","starred_url":"https://api.github.com/users/mb21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mb21/subscriptions","organizations_url":"https://api.github.com/users/mb21/orgs","repos_url":"https://api.github.com/users/mb21/repos","events_url":"https://api.github.com/users/mb21/events{/privacy}","received_events_url":"https://api.github.com/users/mb21/received_events","type":"User","site_admin":false},"created_at":"2018-06-12T10:36:19Z","updated_at":"2018-06-12T10:36:19Z","author_association":"COLLABORATOR","body":"The LaTeX reader could parse the `\\label` to the `id` field on the image in the AST, which would allow round-tripping."}}
{"actor":{"display_login":"mb21"}}