无法使用Markdown链接

2024年2月7日晚上8:48

我正在尝试在一个 Markdown 卡片中插入一个超链接,但失败了。
我看到的:
图片
我的 Markdown 代码:

  - 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> '

你混合使用了 HTML 格式(例如 <p>)和 Markdown 格式(例如 [x](y))- 我没意识到你可以这样做。留一个空行似乎会“重置”它,或者使用 <a> 标签,或者只使用 Markdown:

  - 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)

感谢,@michaelblight(Michael Blight)。
成功了!