Index of every page on this site: llms.txt
All skills
github avatar

/markdown-to-html

@f10fdb8 official
by githubgithub/awesome-copilot42k stars
5,426
Run it yourself

Convert Markdown files to HTML similar to `marked.js`, `pandoc`, `gomarkdown/markdown`, or similar tools; or writing custom script to convert markdown to html and/or working on web template systems like `jekyll/jekyll`, `gohugoio/hugo`, or similar web templating systems that utilize markdown documents, converting them to html. Use when asked to "convert markdown to html", "transform md to html", "render markdown", "generate html from markdown", or when working with .md files and/or web a templating system that converts markdown to HTML output. Supports CLI and Node.js workflows with GFM, CommonMark, and standard Markdown flavors.

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/markdown-to-html

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referenceswriting-mathematical-expressions.md

≈1.2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Writing mathematical expressions

Use Markdown to display mathematical expressions on GitHub.

About writing mathematical expressions

To enable clear communication of mathematical expressions, GitHub supports LaTeX formatted math within Markdown. For more information, see LaTeX/Mathematics in Wikibooks.

GitHub's math rendering capability uses MathJax; an open source, JavaScript-based display engine. MathJax supports a wide range of LaTeX macros, and several useful accessibility extensions. For more information, see the MathJax documentation and the MathJax Accessibility Extensions Documentation.

Mathematical expressions rendering is available in GitHub Issues, GitHub Discussions, pull requests, wikis, and Markdown files.

Writing inline expressions

There are two options for delimiting a math expression inline with your text. You can either surround the expression with dollar symbols ($), or start the expression with <code>$`</code> and end it with <code>`$</code>. The latter syntax is useful when the expression you are writing contains characters that overlap with markdown syntax. For more information, see Basic writing and formatting syntax.

This sentence uses `$` delimiters to show math inline: $\sqrt{3x-1}+(1+x)^2$

Screenshot of rendered Markdown showing an inline mathematical expression: the square root of 3x minus 1 plus (1 plus x) squared.

This sentence uses $\` and \`$ delimiters to show math inline: $`\sqrt{3x-1}+(1+x)^2`$

Screenshot of rendered Markdown showing an inline mathematical expression with backtick syntax: the square root of 3x minus 1 plus (1 plus x) squared.

Writing expressions as blocks

To add a math expression as a block, start a new line and delimit the expression with two dollar symbols $$.

[!TIP] If you're writing in an .md file, you will need to use specific formatting to create a line break, such as ending the line with a backslash as shown in the example below. For more information on line breaks in Markdown, see Basic writing and formatting syntax.

**The Cauchy-Schwarz Inequality**\
$$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)$$

Screenshot of rendered Markdown showing a complex equation. Bold text reads "The Cauchy-Schwarz Inequality" above the formula for the inequality.

Alternatively, you can use the <code>```math</code> code block syntax to display a math expression as a block. With this syntax, you don't need to use $$ delimiters. The following will render the same as above:

**The Cauchy-Schwarz Inequality**

```math
\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
```

Writing dollar signs in line with and within mathematical expressions

To display a dollar sign as a character in the same line as a mathematical expression, you need to escape the non-delimiter $ to ensure the line renders correctly.

Further reading

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning12d5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides a comprehensive guide for converting Markdown to HTML using industry-standard tools and libraries. It includes appropriate security warnings and detailed remediation steps for handling untrusted input.

  • Socket12d

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer9mo

    13/16 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at f10fdb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 7 months ago
  • markdown
  • html
  • conversion
  • marked
  • pandoc
  • static-site-generator
  • jekyll
  • hugo
  • gfm

README badge

README badge for github/awesome-copilot/markdown-to-html

Converts Markdown files to HTML using marked.js, pandoc, or custom scripts, with support for GFM, CommonMark, and standard Markdown flavors. Handles single files, batch conversions, code blocks, tables, collapsed sections, and mathematical expressions. Suitable for static site generators like Jekyll and Hugo, or building custom markdown-to-HTML conversion tools.

Generated from the current SKILL.md.

Does this skill support GitHub Flavored Markdown?
Yes. The skill supports GFM, CommonMark, and standard Markdown flavors, with GFM enabled via the `gfm: true` option in marked.js or equivalent settings in pandoc.
What tools does this skill cover?
The skill provides guidance for marked.js (Node.js and CLI), pandoc (command-line tool), and custom conversion scripts. It also references jekyll and hugo for templating systems that convert markdown to HTML.
Does marked.js sanitize HTML output?
No. Marked does not sanitize output HTML. The skill recommends using DOMPurify, sanitize-html, or js-xss to sanitize untrusted markdown before display.
Can this skill handle batch conversions and advanced features like tables and math expressions?
Yes. The skill covers single and batch file conversions, tables with alignment, code blocks with language tags, collapsed sections (details/summary), and mathematical expressions with MathML rendering.
Does pandoc require additional software for PDF output?
Yes. Pandoc requires a LaTeX installation (MacTeX on macOS, MiKTeX on Windows, texlive on Linux) to generate PDF output from markdown.

Generated from the current SKILL.md. These answers refresh after source changes.