klogg
(Klogg)
1
Is it possible to get color text in the markdown card?
I thought that markdown could contain HTML so I hoped this would work:
- type: markdown
content: Some Markdown text with <span style="color:blue">some *blue* text</span>.
But it doesn’t ![:frowning: :frowning:](https://community.home-assistant.io/images/emoji/twitter/frowning.png?v=9)
![image](//community-assets.home-assistant.io/original/3X/f/7/f75dfe313e2b1482a001de13be55768d01596631.png)
I’m having this in a markdown
type: markdown
content: |
{%- set mapper = {'0':'"#c5e566"','1':'"#ffeb3b"','2':'"#fb8c00"','3':'"#e53935"','4':'"#880e4f"','10':'"#cc99ff"','20':'#fe68fe'} %}
...
<font color = {{- mapper[level] if level in mapper else 'grey'}}> **{{ headline }}** </font>
2 Likes
KTibow
(Kendell R)
3
Nice, anyway to do this that’s non-deprecated in HTML5?