Across the site, sr.ht uses mistletoe for rendering Markdown. It implements CommonMark, which is much more well-defined than the original Markdown specification.
Additionally, some extensions to CommonMark are used.
<scheme>://<path>) and plain e-mail
addresses (of the form <name>@<domain>) can be used, and they will
be turned into the appropriate links (for e-mail addresses, this
prepends mailto:).Rendered HTML is post-processed so that it only consists the following
tags and attributes (in the format tags...: attributes...)
a: href, titleabbr: titleacronym: titlebblockquotecodedddivdldtemh1, h2, h3, h4, h5, h6: idiimg: alt, height, width, src (only HTTP/HTTPS/local URLs)input: type=checkbox, checked, disabledliolppreqspanstrongtabletbodytdththeadtrulAll tags can have the attributes class, style, colspan and
rowspan. The only allowed classes are row, col-md-*, and
form-control.
Here are valid style attributes:
marginpaddingtext-alignfont-weighttext-decorationpadding-{left,right,bottom,top}margin-{left,right,bottom,top}commit a94f0e21e24af1b65f6601a999dd5372e0b1ae4b Author: Conrad Hoffmann <ch@bitfehler.net> Date: 2026-10-21T13:46:14+02:00 tutorials/git: update section about repo creation The flow has slightly changed since this was originally written.