If you make a list of everything you want changed/removed in terms of HTML I'll try to write an HTML filter.

/bpj

lör 11 feb. 2017 kl. 22:14 skrev Marc Haber <mh+pandoc-discuss-ciUMMiFYEj8OIzVOb1FTxg@public.gmane.org>:
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

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to pandoc-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/20170211211439.GD2488%40torres.zugschlus.de.
For more options, visit https://groups.google.com/d/optout.
--


SavedURI :Show URLShow URLSavedURI :
SavedURI :Hide URLHide URLSavedURI :
https://mail.google.com/_/scs/mail-static/_/js/k=gmail.main.sv.G3GZFwvcniQ.O/m=m_i,t,it/am=fUAcTAoZawdGHAZ2YD-g9N_f7LL4CX7WlSgHQKgABHaCv9kToPiBD8qOMw/rt=h/d=1/rs=AItRSTO5CF1YB_frDRXLXTeUsQ1zItcBvwhttps://mail.google.com/_/scs/mail-static/_/js/k=gmail.main.sv.G3GZFwvcniQ.O/m=m_i,t,it/am=fUAcTAoZawdGHAZ2YD-g9N_f7LL4CX7WlSgHQKgABHaCv9kToPiBD8qOMw/rt=h/d=1/rs=AItRSTO5CF1YB_frDRXLXTeUsQ1zItcBvw

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAFC_yuRk%2BEGMRy6Bw0p2u6EiTwSHVwr589MZPm_%2Bda3hZudUiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.