{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/2236","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/2236/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/2236/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/2236/events","html_url":"https://github.com/jgm/pandoc/issues/2236","id":88515138,"number":2236,"title":"html tables in Markdown are ignored in LaTeX","user":{"login":"somenxavier","id":89915,"avatar_url":"https://avatars.githubusercontent.com/u/89915?v=3","gravatar_id":"","url":"https://api.github.com/users/somenxavier","html_url":"https://github.com/somenxavier","followers_url":"https://api.github.com/users/somenxavier/followers","following_url":"https://api.github.com/users/somenxavier/following{/other_user}","gists_url":"https://api.github.com/users/somenxavier/gists{/gist_id}","starred_url":"https://api.github.com/users/somenxavier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somenxavier/subscriptions","organizations_url":"https://api.github.com/users/somenxavier/orgs","repos_url":"https://api.github.com/users/somenxavier/repos","events_url":"https://api.github.com/users/somenxavier/events{/privacy}","received_events_url":"https://api.github.com/users/somenxavier/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-15T19:19:53Z","updated_at":"2015-06-16T10:52:59Z","closed_at":"2015-06-16T09:05:19Z","body":"If you write something like:\r\n```\r\nBla\r\n<table>\r\n<theader>\r\n<tr>\r\n<th>Component</th>\r\n<th>Preu</th>\r\n</tr>\r\n</theader>\r\n<tbody>\r\n<tr>\r\n<td>[Compulab Fitlet-B](http://fit-pc.com/wiki/index.php/Fit-PC_Product_Line:_fitlet)</td>\r\n<td>239,73 €</td>\r\n</tr>\r\n<tr>\r\n<td>Disc dur mSATA Kingston SSD [SMS200S3/120 GB](http://www.kingston.com/datasheets/sms200s3_en.pdf) (111.8 GiB)</td>\r\n<td>86,95 €</td>\r\n</tr>\r\n<tr>\r\n<td>Memòria RAM Kingston 8GB DDR3L 1600 CL10 240 PIN UDIMM RAM</td>\r\n<td>69,60 €</td>\r\n</tr>\r\n</tbody>\r\n<tfoot>\r\n<tr>\r\n<td>TOTAL</td>\r\n<td>396,28 €</td>\r\n</tr>\r\n</tfoot>\r\n</table>\r\n```\r\nin markdown and you convert to latex via:\r\n\r\n```pandoc -f markdown+raw_html+markdown_in_html_blocks+implicit_header_references+strikeout+tex_math_dollars+raw_tex+yaml_metadata_block+multiline_tables bitacora.md --biblio referencies.bib --csl amai.csl -N -s -S --toc -o bitacora.pdf``` (replace `bitacora.*` for your file name), then you get latex document without tables in it.\r\n\r\nCan you see it,\r\nThanks,\r\n\r\nXan"},"comment":{"url":"https://api.github.com/repos/jgm/pandoc/issues/comments/112384347","html_url":"https://github.com/jgm/pandoc/issues/2236#issuecomment-112384347","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/2236","id":112384347,"user":{"login":"KurtPfeifle","id":4747960,"avatar_url":"https://avatars.githubusercontent.com/u/4747960?v=3","gravatar_id":"","url":"https://api.github.com/users/KurtPfeifle","html_url":"https://github.com/KurtPfeifle","followers_url":"https://api.github.com/users/KurtPfeifle/followers","following_url":"https://api.github.com/users/KurtPfeifle/following{/other_user}","gists_url":"https://api.github.com/users/KurtPfeifle/gists{/gist_id}","starred_url":"https://api.github.com/users/KurtPfeifle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KurtPfeifle/subscriptions","organizations_url":"https://api.github.com/users/KurtPfeifle/orgs","repos_url":"https://api.github.com/users/KurtPfeifle/repos","events_url":"https://api.github.com/users/KurtPfeifle/events{/privacy}","received_events_url":"https://api.github.com/users/KurtPfeifle/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T10:52:58Z","updated_at":"2015-06-16T10:52:58Z","body":"@Xavier:\n\n*My trick works… basically!*\n\nTo debug this for you, I first divided my piped command chain into two\nseparate commands. The first creates the HTML as bitacora.html. This opens\nin a browser and renders a correctly looking HTML table.\n\nBut what does not work is: to convert *that* HTML snippet with *that*\nHTML-table code to Markdown with, say, a grid_table:\n\n$ cat bitacora.html\n<p>Bla</p>\n\n<table>\n<theader>\n    <tr><th>Component</th><th>Preu</th></tr>\n</theader>\n<tbody>\n   <tr><td><a href=\"http://fit-pc.com/wiki/index.php/Fit-PC_Product_Line:_fitlet\">Compulab\nFitlet-B</a></td><td>239,73 €</td></tr>\n   <tr><td>Disc dur mSATA Kingston SSD <a\nhref=\"http://www.kingston.com/datasheets/sms200s3_en.pdf\">SMS200S3/120\nGB</a> (111.8 GiB)</td><td>86,95 €</td</tr>\n   <tr><td>Memòria RAM Kingston 8GB DDR3L 1600 CL10 240 PIN UDIMM\nRAM</td><td>69,60 €</td></tr>\n</tbody>\n<tfoot>\n   <tr><td>TOTAL</td><td>396,28 €</td></tr>\n</tfoot>\n</table>\n\nThen: pandoc -t markdown+grid_tables -f html bitacora.html:\n\nBla\n\nComponent\n\nPreu\n\n[Compulab\nFitlet-B](http://fit-pc.com/wiki/index.php/Fit-PC_Product_Line:_fitlet)\n\n239,73 €\n\nDisc dur mSATA Kingston SSD [SMS200S3/120\nGB](http://www.kingston.com/datasheets/sms200s3_en.pdf) (111.8 GiB)\n\n86,95 €\n\nMemòria RAM Kingston 8GB DDR3L 1600 CL10 240 PIN UDIMM RAM\n\n69,60 €\n\nTOTAL\n\n396,28 €\n`\n\nIn other words: it’s not my “trick” that didn’t work, it’s that Pandoc\nisn’t able to convert this type of HTML table to a Markdown table.\n\nAbout this, I’m not sure if it is a bug or simply a known (current)\nlimitation. *I’m also not sure, if you HTML syntax is correct!* Your\n<theader> may need to be named as <thead> (I’m not fluent in HTML, and I\ndidn’t look it up.). Modifying that in bitacora.html produces this:\n\n$ pandoc -f html bitacora.html -t markdown\n\nBla\n\n  Component\n                                           Preu\n  ---------------------------------------------------------------------------------------------------------------\n----------\n  [Compulab Fitlet-B](http://fit-pc.com/wiki/index.php/Fit-PC_Product_Line:_fitlet)\n                              239,73 €\n  Disc dur mSATA Kingston SSD [SMS200S3/120\nGB](http://www.kingston.com/datasheets/sms200s3_en.pdf) (111.8 GiB)\n86,95 €\n  Memòria RAM Kingston 8GB DDR3L 1600 CL10 240 PIN UDIMM RAM\n                                           69,60 €\n  TOTAL\n                                           396,28 €\n\nWhich to me looks correct… Making the same changes to the initial\nbitacora.md even makes my proposed trick work…\n\npandoc -f markdown+raw_html+markdown_in_html_blocks bitacora.md -t html  \\\n| pandoc -f html --biblio referencies.bib --csl amai.csl -N -s -S --toc  \\\n         -V geometry:\"margin=0.5cm, paperwidth=500pt, paperheight=170pt\" \\\n         -o bitacora.pdf\n`\n\n…and the bitacora.pdf is created successfully, looking how it ought to look\n(screenshot):\n\n\n​​\n*Lessons learned:*\n\n   1. Never give up debugging too early.\n   2. Never put blame on one component of your toolchain prematurely.\n   3. If an endresult is not correct, look at *all* steps of your process.\n   4. In most cases it is the input (or the user) which is to blame. :-)\n\n​\n\nOn Tue, Jun 16, 2015 at 11:05 AM, Xavier <notifications@github.com> wrote:\n\n> @KurtPfeifle <https://github.com/KurtPfeifle> : your trick does not work.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/jgm/pandoc/issues/2236#issuecomment-112348664>.\n>\n"}}