Markdown Hyperlink not following theme

Markdown Hyperlink not following theme

avatar
(anonymous user)
Product: PowerShell Universal
Version: 3.8.8


I am not sure if anyone else have this issue, but when I convert a URL/hyperlink to markdown the hyperlink does not follow the current theme colors. Anyway I can fix this?

e947edb6467a2b07c782cfb4070e800a2ddf2f62

e947edb6467a2b07c782cfb4070e800a2ddf2f62.png

All Comments (4)

avatar

@Adam Driscoll, is there a theme hack or is this a bug?

avatar

It might be possible with themes but I would have to play around with it. It also may be possible with UDStyle with selectors for the theme type. Something like this:

New-UDStyle -Style "
:root[data-theme="dark"] {
--md-anchor: white;
}
:root[data-theme="light"] {
--md-anchor: blue;
}
a {
    color: var(--md-anchor);
}
" -Content {
   New-UDMarkdown
}


I’d be open to an issue for this though since it’s really hacky to get right.

Adam Driscoll
PowerShell Expert and Developer at Devolutions

avatar
avatar

Is now fixed. however New-UDHtml does not, added an enhancement for it.

    New-UDMarkdown -Children "[Google.com](http://www.google.com)"