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

LaTex Theming #207

Closed
octo-kumo opened this issue Mar 8, 2020 · 3 comments
Closed

LaTex Theming #207

octo-kumo opened this issue Mar 8, 2020 · 3 comments
Milestone

Comments

@octo-kumo
Copy link

  • Markwon version: 4.2.2

How to change the latex's text color?

Currently I am using this for theme.

public void configureTheme(@NonNull MarkwonTheme.Builder builder) {
    builder
            .linkColor(userActivity.getResources().getColor(R.color.colorPrimary))
            .blockQuoteColor(Color.LTGRAY)
            .codeTextColor(Color.WHITE)
            .codeBlockTextColor(Color.WHITE)
            .codeBackgroundColor(Color.GRAY);
}

The results are not what I expected, as you can see, the latex's text color is black
End Result

Or does Latex require extra/separate theming?

@noties
Copy link
Owner

noties commented Mar 8, 2020

Hello @misuti !

Yes, LaTeX require special customization. But by some strange reason it is not yet exposed via JLatexMathPlugin... I'm going to add it to the next 4.3.0 release

@noties noties added this to the 4.3.0 milestone Mar 8, 2020
@octo-kumo
Copy link
Author

Is there any way to go around this? Like reversing the image after render or something?

@noties
Copy link
Owner

noties commented Mar 9, 2020

Well, there are most definitely ways to work around it:

  1. await the next 4.3.0version 😄
  2. modify JLatexMathPlugin to fit your needs now

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