Skip to content

Instantly share code, notes, and snippets.

vimtaai / luminance.scss
Last active May 13, 2021
Functions to calculate luminance of colors and contrast ratio of colors in SASS
View luminance.scss
// Calulates power with integer exponent
@function pow($number, $exponent) {
$value: 1;
@if $exponent > 0 {
@for $i from 1 through $exponent {
$value: $value * $number;
} @else if $exponent < 0 {
@for $i from 1 through -$exponent {
vimtaai /
Last active Nov 19, 2021
Comparison of features in various Markdown flavors

Comparison of syntax extensions in Markdown flavors

I created a crude comparison of the syntax of the various common Markdown extensions to have a better view on what are the most common extensions and what is the most widely accepted syntax for them. The list of Markdown flavors that I looked at was based on the list found on CommonMark's GitHub Wiki.

Flavor Superscript Subscript Deletion*
Insertion* Highlight* Footnote Task list Table Abbr Deflist Smart typo TOC Math Math Block Mermaid