Skip to content

Latest commit

 

History

History

sub

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

@jotdoc/sub npm

Whitespace-terminating (<sub>)scripts 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_n·+·...

xn + ...

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

D_(test·#1)

Dtest #1

Compatible with conventional subscript syntax (~...~)

Enable

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

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