{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/3087","repository_url":"https://api.github.com/repos/jgm/pandoc","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/3087/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/3087/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/3087/events","html_url":"https://github.com/jgm/pandoc/issues/3087","id":173017554,"number":3087,"title":"Table rendering is broken for `--from=latex --to=markdown`.","user":{"login":"alexander-matsievsky","id":3784691,"avatar_url":"https://avatars.githubusercontent.com/u/3784691?v=3","gravatar_id":"","url":"https://api.github.com/users/alexander-matsievsky","html_url":"https://github.com/alexander-matsievsky","followers_url":"https://api.github.com/users/alexander-matsievsky/followers","following_url":"https://api.github.com/users/alexander-matsievsky/following{/other_user}","gists_url":"https://api.github.com/users/alexander-matsievsky/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander-matsievsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander-matsievsky/subscriptions","organizations_url":"https://api.github.com/users/alexander-matsievsky/orgs","repos_url":"https://api.github.com/users/alexander-matsievsky/repos","events_url":"https://api.github.com/users/alexander-matsievsky/events{/privacy}","received_events_url":"https://api.github.com/users/alexander-matsievsky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-24T17:55:14Z","updated_at":"2016-08-25T15:10:40Z","closed_at":"2016-08-25T15:10:39Z","body":"### Problem\r\nGood day! I'm trying to convert a `.tex` document to `.md`. I've encountered an issue with table rendering. Don't know whether it's a bug or I'm missing something. Grepping the web for an answer showed nothing, except https://github.com/jgm/pandoc/issues/2669. Your help will be greatly appreciated.\r\n\r\n### Case 1\r\n\r\n[LyX-generated `.tex` file.](https://github.com/jgm/pandoc/files/435308/input.txt)\r\n\r\n```tex\r\n\\begin{tabular}{|c|c|c|}\r\n\\hline \r\na & b & c\\tabularnewline\r\n\\hline \r\n\\hline \r\n1 & 2 & 3\\tabularnewline\r\n\\hline \r\n\\end{tabular}\r\n```\r\n\r\n```bash\r\n> cat input.txt | pandoc --from=latex --to=markdown\r\n<span>|c|c|c|</span> a & b & c<span>\\\r\n</span> 1 & 2 & 3<span>\\\r\n</span>\r\n```\r\n\r\n### Case 2\r\n\r\n[LyX-generated `.tex` file with `\\tabularnewline` command manually replaced with `\\\\`](https://github.com/jgm/pandoc/files/435309/input-wo-tabularnewline.txt)\r\n\r\n```tex\r\n\\begin{tabular}{|c|c|c|}\r\n\\hline \r\na & b & c\\\\\r\n\\hline \r\n\\hline \r\n1 & 2 & 3\\\\\r\n\\hline \r\n\\end{tabular}\r\n```\r\n\r\n```bash\r\n> cat input-wo-tabularnewline.txt | pandoc --from=latex --to=markdown\r\n   a   b   c\r\n  --- --- ---\r\n   1   2   3\r\n```\r\n\r\n### System\r\n\r\n```bash\r\n> sw_vers\r\nProductName:    Mac OS X\r\nProductVersion: 10.11.2\r\nBuildVersion:   15C50\r\n```\r\n\r\n```bash\r\n> pandoc -v\r\npandoc 1.17.2\r\nCompiled with texmath 0.8.6.4, highlighting-kate 0.6.2.1.\r\nSyntax highlighting is supported for the following languages:\r\n    abc, actionscript, ada, agda, apache, asn1, asp, awk, bash, bibtex, boo, c,\r\n    changelog, clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs, css,\r\n    curry, d, diff, djangotemplate, dockerfile, dot, doxygen, doxygenlua, dtd,\r\n    eiffel, elixir, email, erlang, fasm, fortran, fsharp, gcc, glsl,\r\n    gnuassembler, go, hamlet, haskell, haxe, html, idris, ini, isocpp, java,\r\n    javadoc, javascript, json, jsp, julia, kotlin, latex, lex, lilypond,\r\n    literatecurry, literatehaskell, llvm, lua, m4, makefile, mandoc, markdown,\r\n    mathematica, matlab, maxima, mediawiki, metafont, mips, modelines, modula2,\r\n    modula3, monobasic, nasm, noweb, objectivec, objectivecpp, ocaml, octave,\r\n    opencl, pascal, perl, php, pike, postscript, prolog, pure, python, r,\r\n    relaxng, relaxngcompact, rest, rhtml, roff, ruby, rust, scala, scheme, sci,\r\n    sed, sgml, sql, sqlmysql, sqlpostgresql, tcl, tcsh, texinfo, verilog, vhdl,\r\n    xml, xorg, xslt, xul, yacc, yaml, zsh\r\nDefault user data directory: /Users/alexander-matsievsky/.pandoc\r\nCopyright (C) 2006-2016 John MacFarlane\r\nWeb:  http://pandoc.org\r\nThis is free software; see the source for copying conditions.\r\nThere is no warranty, not even for merchantability or fitness\r\nfor a particular purpose.\r\n```"},"comment":{"url":"https://api.github.com/repos/jgm/pandoc/issues/comments/242423001","html_url":"https://github.com/jgm/pandoc/issues/3087#issuecomment-242423001","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/3087","id":242423001,"user":{"login":"alexander-matsievsky","id":3784691,"avatar_url":"https://avatars.githubusercontent.com/u/3784691?v=3","gravatar_id":"","url":"https://api.github.com/users/alexander-matsievsky","html_url":"https://github.com/alexander-matsievsky","followers_url":"https://api.github.com/users/alexander-matsievsky/followers","following_url":"https://api.github.com/users/alexander-matsievsky/following{/other_user}","gists_url":"https://api.github.com/users/alexander-matsievsky/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander-matsievsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander-matsievsky/subscriptions","organizations_url":"https://api.github.com/users/alexander-matsievsky/orgs","repos_url":"https://api.github.com/users/alexander-matsievsky/repos","events_url":"https://api.github.com/users/alexander-matsievsky/events{/privacy}","received_events_url":"https://api.github.com/users/alexander-matsievsky/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T15:10:39Z","updated_at":"2016-08-25T15:10:39Z","body":"@jgm Thank you for a detailed explanation!"}}
{"actor":{"display_login":"alexander-matsievsky"}}