Can a GitHub wiki embed HTML

不羁岁月 提交于 2020-12-30 06:01:05

问题


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.

Is this possible?

PS The code is: http://pipad.org/MathBox/slides_simple.html


回答1:


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

To embed supported HTML:

  1. Edit a wiki page.
  2. Ensure the edit mode is on "Markdown".
  3. Type the html directly into the main content area (there's no "code" view, like you often see in tools like Wordpress).

Which tags aren't supported?

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

  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).


来源:https://stackoverflow.com/questions/38480701/can-a-github-wiki-embed-html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!