GitHub Wiki可以嵌入HTML吗 [英] Can a GitHub wiki embed HTML

查看:73
本文介绍了GitHub Wiki可以嵌入HTML吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个Wiki页面,该页面是一个序言(标准减价),后跟HTML/JS代码列表,然后(在我想的框架中)此代码将生成的页面.

I would like to create a wiki page that is a preamble (standard markdown) followed by an HTML/JS code listing followed by (in a frame I suppose) the page that this code would generate.

这可能吗?

PS代码为: http://pipad.org/MathBox/slides_simple.html

推荐答案

Github Wiki允许您嵌入HTML,但并非所有HTML标记均受支持.

Github Wikis allow you to embed HTML, but not all HTML tags are supported.

要嵌入支持的HTML:

To embed supported HTML:

  1. 编辑Wiki页面.
  2. 确保编辑模式为降价".
  3. 直接将html键入到主要内容区域(没有代码"视图,就像您在诸如Wordpress之类的工具中经常看到的那样).

不支持哪些标签?

我找不到关于此的文档,但是我们有一些线索:

I couldn't find documentation on this, but we have a few clues:

  1. Github Wiki是基于名为Gollum的软件工具构建的.我们可以在此处查看Gollum文档中默认情况下在Gollum中支持哪些标签.Github可以根据用例自定义这些默认值,但是我敢打赌,它非常相似.
  2. 我继续创建了此处的测试Wiki ,其中添加了主要的视觉html元素(从 Poor Man's Styleguide 复制).看起来似乎没有显示的主要标签是 iframe video audio 和所有各种形式的输入(textarea input select 等).
  1. Github wikis are built on a software tool called Gollum. We can see which tags are supported in Gollum by default here in the Gollum docs. Github may customize these defaults for their use-case, but I'll bet it's pretty similar.
  2. I went ahead and created a test wiki here with all the major visual html elements added to it (copied from Poor Man's Styleguide). It looks like the main tags that don't display are iframe, video, audio, and all of the various form inputs (textarea, input, select, etc).

这篇关于GitHub Wiki可以嵌入HTML吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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