Closed
Description
When converting to XHTML, pandoc-eqnos
adds the following code to the <head>
of the document:
<!-- pandoc-eqnos: equation style -->
<style>
.eqnos { display: inline-block; position: relative; width: 100%; }
.eqnos br { display: none; }
.eqnos-number { position: absolute; right: 0em; top: 50%; line-height: 0; }
</style>
The W3C XHTML validator evaluates the second line as erroneous: required attribute "type" not specified
. For the XHTML document to be valid, the second line should read:
<style type="text/css">
For HTML5, it is the other way around. <style>
is preferred, whereas <style type="text/css">
results in a warning, but not an error.
Error-free conversion to valid XHTML remains important for unattended typesetting of paged media with, for example, PrinceXML.