Skip to content

Latest commit

 

History

History

fracs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

@jotdoc/fracs npm

Format simple inline fractions (markdown-it plugin)

❗⠀This plugin belongs to a family of experimental features called Jotdoc: a "flavor" of Markdown aiming to maximize readability and extend markup for common use cases where verbose HTML is required.

If you're interested, please do share your thoughts and check out the monorepo!

Demo

Up to 2 digits in the numerator/denominator:
(· = whitespace )

·1/16·

116

Enable

const md = require('markdown-it')()

      md.use(require('@jotdoc/fracs'))