I’m trying to insert a hyperlink in a markdown card, but failing.
What I see:
My markdown code:
- type: conditional
conditions:
- condition: state
entity: binary_sensor.192_168_0_208
state: 'on'
card:
type: markdown
content: ' <p>OctoPi OS is running.</p>
<p>Take care to properly shut down the server <strong>before</strong> turning off the power.</p>
<p>There is an option in OctoPrint to shutdown the OS:
<p> [OctoPrint Server UI](https://192.168.0.208)
<p>https://192.168.0.208
<p>(https://192.168.0.208)
<p>You can also ssh into the OS then issue a shutdown command.
<ul><pre>$ssh [email protected]</pre></ul>
<p>There is a safe shutdown button on the board as well.</p> '
You’re mixing HTML-style (eg <p>) and markdown-style together (eg [x](y)) - not that I realised you could do that. Leaving a blank line seems to ‘reset’ it, or use an <a> tag, or just use markdown only instead:
- type: markdown
content: |
<p>OctoPi OS is running.</p>
<p>Take care to properly shut down the server <strong>before</strong> turning off the power.</p>
<p>There is an option in OctoPrint to shutdown the OS:</p>
[OctoPrint Server UI](https://192.168.0.208)
- type: markdown
content: |
<p>OctoPi OS is running.</p>
<p>Take care to properly shut down the server <strong>before</strong> turning off the power.</p>
<p>There is an option in OctoPrint to shutdown the OS:</p>
<a href="https://192.168.0.208">OctoPrint Server UI</a>
- type: markdown
content: |
OctoPi OS is running.\
Take care to properly shut down the server **before** turning off the power.\
There is an option in OctoPrint to shutdown the OS:\
[OctoPrint Server UI](https://192.168.0.208)