Forum How do I...?

Losing certain colors of fonts when converting to a PDF

user202411
I'm using markdown grammer <font color=xxxxxx>example words</font> to change the color of "example words" in question.
Here the "xxxxxx" is the RGB value of cetain color, e.g., red=FF0000.

However, if I use the value of certain color instead of the name of the color (e.g., FF0000 instead of red), the PDF cannot display the former but the latter, even if they can be both dispalyed when previewed.

An example is shown in the attached file. Please help me solve this problem so that the PDF can also display the color defined by RGB value.
  1. 屏幕截图 2025-02-26 112520.png33.4 kB
    the original code
  2. 屏幕截图 2025-02-26 112527.png8.8 kB
    the preview
  3. 屏幕截图 2025-02-26 112547.png15.3 kB
    after being converted to PDF
mikeday
It should work if you specify the color with a hash prefix, e.g. color="#FF0000".
user202411
yes, you are right!