如何将YouTube视频嵌入启用Markdown的文本字段中? [英] How can I embed a YouTube video in a Markdown enabled text field?

查看:83
本文介绍了如何将YouTube视频嵌入启用Markdown的文本字段中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我要嵌入的代码:

<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/jJECepNeCJ0&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/jJECepNeCJ0&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>

有趣的是,此代码似乎在窗体下方的预览"中显示嵌入的视频.保存表单后,代码段将呈现为文本.

The interesting thing is that this code seems to display the embedded video in the Preview immediately below the form. Once the form is saved, the code snippet is rendered as text.

推荐答案

对我来说很好.
确保您的代码段之前没有四个空格.

It works fine for me.
Make sure your code snippet doesn't have four spaces before it.

这篇关于如何将YouTube视频嵌入启用Markdown的文本字段中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆