Youtube视频和文字在Markdown中并排显示

时间:2015-05-15 12:33:41

标签: html html-table markdown

我想在右边有一些文字...

##Features

* Feature 1
* Feature 2
* Feature 3

和左边的Youtube视频。怎么做得好?

enter image description here

我尝试了like this,但不成功:

| | |
|-|-|
|<iframe width="560" height="315" src="https://www.youtube.com/embed/vNp85kiMXK0" frameborder="0" allowfullscreen></iframe>|
##Features

* Feature 1
* Feature 2
* Feature 3
| 

修改

我也试过这个:

<table>
<tr>
<td width="50%">
<iframe width="300" height="315" src="https://www.youtube.com/embed/vNp85kiMXK0" frameborder="0" allowfullscreen></iframe>
</td>
<td width="50%">
##Features
* Feature 1
* Feature 2
* Feature 3
</td>
</tr>
</table>

但是不再可以在表格中使用Markdown :Markdown不会被解析并且像正常文本一样由Parsedown呈现......

1 个答案:

答案 0 :(得分:0)

Markdown为deliberately simple

  

Markdown不是HTML的替代品,甚至不接近它。它的语法非常小,仅对应于HTML标签的一小部分。想法是来创建一种语法,使其更容易插入HTML标记。在我看来,HTML标签已经很容易插入。 Markdown的想法是让阅读,编写和编辑散文变得容易。 HTML是发布格式; Markdown是一种写作格式。因此,Markdown的格式化语法仅解决可以用纯文本传达的问题。

它不包括对许多内容的支持,包括表¹和列。对于这样的事情,只需使用HTML:

  

对于Markdown语法未涵盖的任何标记,您只需使用HTML本身。没有必要为它添加前缀或分隔它以表明您正在从Markdown切换到HTML;你只需使用标签。

¹一些Markdown实现添加了对原始规范中不存在的内容的支持,表格是常见的。这种支持没有很好地标准化,如果你想要一个特定于实现的解决方案,你必须指定你正在使用的实现。