• Markdown编辑器本身是内容写作工具,本身并不支持文字排版,理论上它只是指出哪些内容是表格、哪些内容是标题、哪些是正文图片代码超链。

  • 但是由于markdown需要输出,自带html/css整合,因此需要指定格式时可以通过内嵌html或者内嵌css来实现。

如果对Markdown 语法不够熟悉,可以查看下面两篇博客:

MarkDown下载以及入门语法(一)

Markdown字体大小颜色、大小、背景色 (二)


1、文字居中:
<center>诶嘿</center>

左对齐:

<p align="left">诶嘿</p>
2、插入图片及图片居中、定义大小
  • 让图片靠左 显示

基本形式是:![这里放图片描述](这里放图片链接)
例子:![美女漂亮不](https://i-blog.csdnimg.cn/blog_migrate/58564343fdcaa5db7bb0a7c809aca860.jpeg)

  • 定义尺寸

<img width = '150' height ='150' src ="https://i-blog.csdnimg.cn/blog_migrate/58564343fdcaa5db7bb0a7c809aca860.jpeg"/>

  • 定义大小并居中显示

<div align=center><img width = '150' height ='150' src ="https://i-blog.csdnimg.cn/blog_migrate/58564343fdcaa5db7bb0a7c809aca860.jpeg"/></div>

3、插入音乐

<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=86 src="//music.163.com/outchain/player?type=2&id=528478901&auto=1&height=66"></iframe>

border="0" width="330" height="86" src="//music.163.com/outchain/player?type=2&id=528478901&auto=0&height=66">
4、插入视频

不支持优酷,可以用youtube。

<iframe width="560" height="315" src="https://www.youtube.com/embed/Ilg3gGewQ5U" frameborder="0" allowfullscreen></iframe>

width="400" height="200" src="https://www.youtube.com/embed/Ilg3gGewQ5U" allowfullscreen="">
5、跳转链接
<a href="http://askunix.top/" target="_blank">跳到自己博客列表</a>

跳到自己博客列表:<a href="http://askunix.top/" 

target="_blank">http://askunix.top/</a>

跳到自己博客列表
跳到自己博客列表:http://askunix.top/

6、使用标准字体
<font face="黑体">我是黑体字</font>
<font face="微软雅黑">我是微软雅黑</font>
<font face="STCAIYUN">我是华文彩云</font>

我是黑体字
我是微软雅黑
我是华文彩云

7、多种矩阵形式输入
  • 不带括号的:
$$\begin{matrix}
1&2 \\  3&4 \\ 5&6
\end{matrix}
$$

135246 1 2 3 4 5 6
<script type="math/tex; mode=display" id="MathJax-Element-5">\begin{matrix} 1&2 \\ 3&4 \\ 5&6 \end{matrix} </script>

  • 带大括号的:
$$\left\{
\begin{matrix}
1&2 \\  3&4 \\ 5&6
\end{matrix}
\right\}
$$

135246 { 1 2 3 4 5 6 }
<script type="math/tex; mode=display" id="MathJax-Element-24">\left\{ \begin{matrix} 1&2 \\ 3&4 \\ 5&6 \end{matrix} \right\} </script>

  • 带中括号的
$$\left[
\begin{matrix}
1&2 \\  3&4 \\ 5&6
\end{matrix}
\right]
$$

135246 [ 1 2 3 4 5 6 ]
<script type="math/tex; mode=display" id="MathJax-Element-25">\left[ \begin{matrix} 1&2 \\ 3&4 \\ 5&6 \end{matrix} \right] </script>

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐