-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid XHTML: type="text/css" missing #50
Comments
In the default
|
I have put a single, relatively simple page on my website into production with the Here is the XHTML validation error caused by |
Above pull request resolves this issue, and the additional fact that format |
This is great, thank you. I have merged your changes into the Should there be a problem following the next release, please feel welcome to re-open. Cheers, |
pandoc-eqnos 2.2.0 is now released. --Tom |
I am afraid this issue requires reopening. I tested this with:
My Here is the single XHTML test page on my web site which now employs |
Oof, sorry, I didn't look at the output carefully enough. I just released pandoc-eqnos 2.2.2 which should resolve the problem. Fingers crossed. :o) Cheers, Tom. |
I am sorry, Tom; It is still not OK. Same validation error.
The output only contains |
I tested it again with as condition |
Weird. This should work with
I process it using:
The output in
This html successfully passes validation. Do you get something different? Just in case:
Also:
Cheers, |
Dear Tom, However, it appears that within your Python API library, only In the early days, |
Resolves "Invalid XHTML: type="text/css" missing" tomduck#50
I created pull request #54, which resolves this issue. |
Hi, Serge. As far as I can tell from the pandoc documentation, |
Note: There was a problem with the |
OK, first I reverted
My best guess is that what |
Aha! My tests show that the behaviour changed with pandoc 2.0. I will work on a pre-2.0 fix. |
Can you first confirm that you are using a 1.x-series pandoc? |
I am running |
Excellent. I will work up a fix. :o) |
You are kind of "lucky" 😄 that I bumped into this issue because Xubuntu 20.4.1 is any day due now. Xubuntu LTS releases always upgrade at the .1 release in August. It seems that I will have some catching up to do with |
Lucky indeed! If one person is reporting this problem, it is a fair bet that many others have had the same problem and given up. So, I appreciate all such feedback. :o) I just posted pandoc-eqnos 2.2.3. Please let me know if this solves the problem. Fingers crossed. [Edit: pandoc-eqnos has been updated, not pandoc-xnos] Cheers, |
I tested Thanks! |
Wonderful! Thanks for your help with this, Serge. Cheers, Tom. |
When converting to XHTML,
pandoc-eqnos
adds the following code to the<head>
of the document: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: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.
The text was updated successfully, but these errors were encountered: