Hello,
please excuse my bad english.
Is it possible to justify text on both sides of the Markdown-Card.
I would separate the lines manually with br.
Just like here.
Hello,
please excuse my bad english.
Is it possible to justify text on both sides of the Markdown-Card.
I would separate the lines manually with br.
Just like here.
As far as I know, markdown doesn’t support full justification of text (i.e. text aligned with both right and left margins).
If you create a table in markdown, it supports left, center, and right justification of text within a table cell (but not full justification).
The workaround is to embed HTML commands to perform full justification. However, I don’t know for sure but I think Home Assistant’s Markdown Card does not support embedded HTML.
Do you have an example code?
I want to do exactly that. But not each letter in its own cell.
The html code is created every minute via a script. At least that’s the plan ^^.
It’s in the link I posted. The table’s first line defines each column’s justification. For example, this is three columns where the first is left-justified, the second is centered, and the third is right-justified.
|:-----|:-----:|-----:|
Then I might think of another way.
I want the script to find the words and then highlight them.
For example “Find the first Sunday and add the command for the color before and after”.
That becomes difficult with a table.
Possibly I have to write the code in a HTML and integrate it via an iframe.
You have described something completely different from the first question and the topic’s title. If my reply answered your first question, please mark it with the Solution tag to close out this topic.
If you need help with the script to highlight words, I recommend you create a new topic. Discussing it here may not attract much attention to it because this topic’s title is about a different subject (text justification).