# Preview Arbitrary HTML

DevFeed: [Preview Arbitrary HTML](<https://devfeed.tech/articles/preview-arbitrary-html-31914.md>)

Original publisher: [Read original article](<http://blog.jayfields.com/2015/01/preview-arbitrary-html.html>)

Author: Jay (noreply@blogger.com)

Published: 2015-01-08T15:23:00Z

Content type: tutorial

Language: en

Sources: [Jay Fields](<https://devfeed.tech/sources/jay-fields.md>)

Topics: [HTML](<https://devfeed.tech/topics/html.md>), [gist](<https://devfeed.tech/topics/gist.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Markdown](<https://devfeed.tech/topics/markdown.md>)

Tags: [gist](<https://devfeed.tech/tags/gist.md>), [github](<https://devfeed.tech/tags/github.md>), [html](<https://devfeed.tech/tags/html.md>), [markdown](<https://devfeed.tech/tags/markdown.md>)

## AI overview

A short tutorial explains how to preview arbitrary HTML by changing a GitHub Gist file extension to .md. GitHub renders Markdown Gists with inline HTML, making this useful for sharing short-lived rendered HTML.

## Source excerpt

I'm a big fan of https://gist.github.com/ for sharing code. It's fantastic for quickly putting something online to talk over with someone else. I've often found myself wishing for something that allowed me to share rendered HTML in the same way. For example, a gist of the HTML for this blog entry can be seen here: https://gist.github.com/jaycfields/82e2cc0a588bd83a91f4. If I want someone to give me feedback on the rendered output, that gist isn't very helpful. It turns out, it's really easy to see that HTML rendered: switch the file extension to md. Here's the same gist with a md extension: https://gist.github.com/jaycfields/e383b12b6ff9bd49c40a This all works due to the way Github renders markdown gists, and markdown supporting inline HTML. I wouldn't use this trick to create any data you'd like to have online in the long term, but it's great for sharing short lived HTML. © Jay Fields - www.jayfields.com