GitHub, Markdown, and HTML - treenabalds/How-To GitHub Wiki

Does GitHub support html with Markdown?

NB: This didn't actually work for me, but I might have done it wrong.

Yes, GitHub does support HTML within Markdown files! You can use basic HTML tags alongside Markdown syntax to enhance your content. This is particularly useful for adding features like colored text, tables with custom styling, or other elements that aren't natively supported in Markdown. For example:

Example: Using HTML in Markdown

# Markdown with HTML Example

This is **Markdown text**.

<span style="color:blue;">This is blue text using HTML!</span>

Key Considerations:

  1. Basic HTML is Supported: Elements like <span>, <div>, <table>, and <img> generally work fine.
  2. Restricted HTML: Some advanced HTML tags or attributes (e.g., <script> for JavaScript) are not supported for security reasons.
  3. HTML and Markdown Coexist: You can mix both formats seamlessly, but be cautious about maintaining readability and compatibility.

If you'd like to explore specific use cases or best practices, let me know! 😊

⚠️ **GitHub.com Fallback** ⚠️