Markdown-mod - Improve the built-in markdown card

Thank you both, it sure helps when I put my contacts in!

I hope you donā€™t think I was complaining?
Far from it!

Oh no. Not at all. Iā€™m just saying donā€™t assume truths will be true forever.

Thanks a lot :slight_smile:

thanks for all your efforts making this mod available @thomasloven!

Iā€™ll begin the process of converting to long term support jinja

Can you still access the current user and browser values in the new approach? i.e. what was {user} ?

No, but Iā€™m working on a way to make card-mod force support for thatā€¦

Didnā€™t really think anyone was actually using itā€¦

1 Like

HI,

trying to set some properties for my cards background, I see exactly nothing at all changingā€¦

with the new native HA markdown card, what do we still need to do so? I style: now accepted natively, or do we still need a -mod card.

I tried to do this:

  - type: markdown
    style: |
      ha-card {
      background-color: lightgrey
      border-radius: 6px
      }
etc

or:

  - type: markdown
    style: |
      ha-card {
      background-color: 'rgba(250, 250, 250, 1)';
      border-radius: 6px;
      }

I uninstalled markdown-mod, but still have card-mod in place.
thanks for having a look.

ā€“updateā€“

got this to work:

  - type: markdown
    style: |
      ha-card {
      --ha-card-background: lightgrey;
      border-radius: 6px;
      }

though the markdown card isnā€™t mentioned among the cards needing that special attention in theFAQ

is this correct, and the way we need to format the style? Or I something missing in my config.

The first snippet doesnā€™t work because css requires semicolons at the end of the lines.
The second snippet doesnā€™t work because 'rgba(250, 250, 250, 1)' isnā€™t a valid css value (rgba(250, 250, 250, 1) is, though)

Regarding the third snippet; what does this have to do with the other question of the faq?

exactly nothing. I am really sorry, was confused and for a moment thought I was using the custom:hui-<type>-card: construction.

thanks for the other corrections. Ive got it working now. much appreciated.!

1 Like

I know that this plugin is deprecated since 0.99 but i hope you guys could help me. I used ā€œ{user}ā€ to show username but today no longer works. What is the new syntax?