public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Simplifying pandoc's HTML output even more
@ 2017-02-11 21:14 Marc Haber
       [not found] ` <20170211211439.GD2488-MEsB+WDYHc7QKvwJT6wXshvVK+yQ3ZXh@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Marc Haber @ 2017-02-11 21:14 UTC (permalink / raw)
  To: pandoc-discuss

Hi,

I am using pandoc to generate simple HTML from markdown. Simple HTML
is required because the german tax authority wants footnotes and
explanation in a rather limited subset of XHTML.

For example, here a test markdown input:
  Right     Left     Center     Default
-------   ------   --------     -------
12        12       12           12
123       123      123          123
1         1        1            1

This creates the following HTML:
<table>
<thead>
<tr class="header">
<th align="right">Right</th>
<th align="right">Left</th>
<th align="right">Center</th>
<th>Default</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td align="right">12</td>
<td align="right">12</td>
<td align="right">12</td>
<td>12</td>
</tr>
<tr class="even">
<td align="right">123</td>
<td align="right">123</td>
<td align="right">123</td>
<td>123</td>
</tr>
<tr class="odd">
<td align="right">1</td>
<td align="right">1</td>
<td align="right">1</td>
<td>1</td>
</tr>
</tbody>
</table>

This HTML does not pass tax validation due to the thead and tbody and
the class attribute to the tr tag.

Can I make pandoc omit those tags and attributes, or do I need to do
post-processing of the generated HTML?

Greetings
Marc


-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-02-16 11:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-11 21:14 Simplifying pandoc's HTML output even more Marc Haber
     [not found] ` <20170211211439.GD2488-MEsB+WDYHc7QKvwJT6wXshvVK+yQ3ZXh@public.gmane.org>
2017-02-11 22:00   ` BP Jonsson
     [not found]     ` <CAFC_yuRk+EGMRy6Bw0p2u6EiTwSHVwr589MZPm_+da3hZudUiQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-02-12  7:10       ` Marc Haber
     [not found]         ` <20170212071012.GI2488-MEsB+WDYHc7QKvwJT6wXshvVK+yQ3ZXh@public.gmane.org>
2017-02-13 12:33           ` BP Jonsson
     [not found]             ` <735216ab-2350-d8a5-d582-10d82d7a8d61-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-02-16 11:46               ` Marc Haber
2017-02-13 15:27           ` John MacFarlane
     [not found]             ` <20170213152705.GB67285-l/d5Ua9yGnxXsXJlQylH7w@public.gmane.org>
2017-02-16 11:45               ` Marc Haber
2017-02-11 22:25   ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).