Is it possible to change the color of inline text in markdown? #5638
Unanswered
alexjlockwood
asked this question in
Q&A
Replies: 1 comment
-
AFAIK, there are no explicit constructs to wrap a text with a [Link](#){ .my-css-class } Now, if you want to use the colors as defined by Material for MkDocs, you can set <button data-md-color-primary="pink"><code>pink</code></button> button > code
background-color: var(--md-primary-fg-color);
color: var(--md-primary-bg-color);
display: block; This will use the pink color as defined by the theme for the button's background. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For example, lets say that I wanted to make use of one of the material primary colors like "deep purple" defined here:
Is there a way to have part of markdown text take on this color value? Like:
What is the preferred approach at doing something like this with mkdocs-material?
Beta Was this translation helpful? Give feedback.
All reactions