Skip to content
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

Wrong color in output #1022

Closed
tgeek77 opened this issue Apr 10, 2019 · 2 comments
Closed

Wrong color in output #1022

tgeek77 opened this issue Apr 10, 2019 · 2 comments

Comments

@tgeek77
Copy link

tgeek77 commented Apr 10, 2019

Hi all, this is a fantastic tool, but I found a rather annoying issue.

My asciidoc code:

+
`[blue]*kubeadm init --cri-socket=/var/run/crio/crio.sock \*`
{nbsp} +
`[blue]*--pod-network-cidr=10.244.0.0/16*`
+

In asciidoctor html export, this appears as bold, blue, monospace text. This is correct.
In the asciidoctor-pdf export, it appears as bold, red, monospace text.

@mojavelinux
Copy link
Member

Asciidoctor PDF does not currently support custom and built-in roles (and thus doesn't support explicitly colorizing text). This is a duplicate of #368, #459, and #817.

(The red color is coming from the theme).

@mojavelinux
Copy link
Member

mojavelinux commented Jul 30, 2019

In 1.5.0.beta.2, you'll be able to define the font properties for a role in your theme (see #368). For example:

role:
  blue:
    font-color: 0000ff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants