** Update: Replaced inline Javascript with link to repo and added better example. **
Here is a custom card I have created which is basically a wrapper around the markdown card, which picks up the content from the state of an entity. This makes it easy to have dynamic formatted text in any view.
This uses a template sensor defined like this in configuration.yaml:
sensors:
- platform: template
sensors:
markdown_test:
friendly_name: Markdown Test
value_template: |
This is **some text** which is *formatted using* [Markdown](https://en.wikipedia.org/wiki/Markdown)
This supports
multiple lines
> Some quoted text here.
This card should also work as a custom card in cards like entity-filter.
Do you think there is any chance of integrating Mermaid with this?
Mermaid is an extension of markdown that allows you to do call flows and other cool diagrams.
That means Home Assisters would be able to create live network diagrams!