-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Switch off default styles if your own styles are defined in the metadata. #165
Comments
Can you provide a minimal reproducible example of a markdown document that doesn't work? |
Below is the markdown.
|
How do you generate the HTML? With
overwritten by which default CSS? from panwriter or pandoc? In the other issue you wrote:
I'm confused. which do you expect to take precedence? |
Sorry for the late response, I was away for a few days.
With export.
Neither, in the generated HTML there are two style sections one below the other, with partly contradictory definitions for the elements, which different browsers probably interpret differently. It would be better if there was a CSS template that the user could customize as desired, so that the HTML only contains one style section. This is what MarkdownPad does, for example. |
Okay, now I understand.
No, nowadays all browsers behave exactly the same in regards to such basic things.
That's because in your browser you have visited those links, so the Now, where the two style sections come from. The second is your CSS from the markdown document, the first style is the document-css from pandoc's own template. You can turn it off by adding the following to your markdown document's metadata:
But the idea of this feature was actually that you would only override a few document-specific styles. If you want to change everything, it's probably better to add a |
But the idea of this feature was actually that you would only override a few document-specific styles. If you want to change everything, it's probably better to add a ~/.pandoc/templates/styles.html file so that it applies to all your documents. Now I just need to know how the styles.html must be composed ... |
Or actually better, add a |
Hmm, I have just noticed that only .md is available for selection under 'Save as'. Should .html also be available here? |
Good tip, I tried it and it works! Thank you very much! |
No, |
I would like to define the appearance of links in my documents. If I do this in the metadata area, it works, but not always when exporting to HTML. When I export the file to HTML, the default styles are also included there. Firefox sometimes uses these, so that my definitions are not applied. How can I change this?
The text was updated successfully, but these errors were encountered: