咱这个小破站搭建成功了,现在记录一下以后要用到的代码,免得到时候翻箱倒柜的找。

因为这个写作是需要用Markdown语法格式写,所以把常用的到东西在这记录一下。

超链接

1
这是一个链接 [维特笔记](https://vte.cc)

渲染结果

这是一个链接 维特笔记

图片插入

插入图片Markdown语法代码:

1
![图片alt](图片链接 "图片title")

对应的HTML代码:

1
2
3
<img 
src="图片链接" alt="图片alt" title="图片title"
>

引用块

引用书上的句子

Do not just seek happiness for yourself. Seek happiness for all. Through kindness. Through mercy.

David LevithanWide Awake

引用网络上的文章

Every interaction is both precious and an opportunity to delight.

视频插入

1
<iframe src=" //player.bilibili.com/player.html?isOutside=true&aid=115252595267797&bvid=BV1G6JCzCE21&cid=32575260409&p=1&as_wide=1&high_quality=1&danmaku=0" style="width: 100%; aspect-ratio: 16 / 9; border: none;" allowfullscreen> </iframe>

音乐插入

1
2
3
4
<audio controls>
<source src="你的mp3地址" type="audio/mpeg">
您的浏览器不支持 audio 元素。
</audio>

一般来说自己编写也就这几样,其他的好像没有。