本文最后更新于 2023-05-14,文章内容可能已经过时。

from官方文档:https://halo.run/archives/use-markdown.html

注意:小程序中可能会无法显示效果,请在网页端查看

网易云音乐:

歌单播放器

# markdown中写:
# [music:id]
# 比如歌单ID=5127071989,会被解析成:
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=450 src="//music.163.com/outchain/player?type=0&id=5127071989&auto=0&height=430"></iframe>

效果如下:
注:非网页端查看此效果可能会出现无法加载或加载过慢等问题

Bilibili:

# markdown中写:
# [bilibili:aid,width,height]
# 比如:cid=98464161,会被解析成:
<div style="position: relative; padding: 30% 45%;">
<iframe style="position: absolute; width: 100%; height: 100%; left: 0; top: 0;" src="//player.bilibili.com/player.html?aid=46996647&bvid=BV1Vb41177ud&cid=98464161&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>
</div>

效果如下:
注:非网页端查看此效果可能会出现无法加载或加载过慢等问题