Add custom style
nothanks1 opened this issue · 4 comments
nothanks1 commented
Hi. For example, in document i have construction " [someText]{.someStyle} "
How to update .css file for print "someText" in red.
jmaupetit commented
You can create a new stylesheet (e.g. styles.css
) with your own .someStyle
rule:
.someStyle {
color: red;
}
... and add this CSS file to the command line options:
$ md2pdf --css styles.css foo.md foo.pdf
nothanks1 commented
jmaupetit commented
Ok, as this extra syntax is not implemented in the markdown library we are using, you will need to mix HTML in markdown:
## Introduce
This document prepared by <span class="critical">Red text here</span>
nothanks1 commented
Well, thank u!