Skip to content

Latest commit

 

History

History

sup

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

@jotdoc/sup npm

Whitespace-terminating (<sup>)erscripts for the markdown-it parser

❗⠀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

(· = whitespace )

x^2·+·...

x2 + ...

If you want spaces in your terms, enclose w/ parenthesis:

D^(m·+·n)

Dm + n

Compatible with conventional superscript syntax (^...^)

Enable

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

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