Skip to content
/ subsup Public

Unicode subscripts and superscripts mapper

Notifications You must be signed in to change notification settings

msn0/subsup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

subsup Build Status

Unicode subscripts and superscripts mapper

Installation

$ npm i subsup

Examples

'a' + sup(2) + ' + b' + sup(2) + ' = c' + sup(2);
// a² + b² = c²
`W(x, y) = -3x${sup('2')} + 2xy${sup(2)} + y${sub(0)}`
// W(x, y) = -3x² + 2xy² + y₀
`W(x) = -3x${sup(3)} - x${sup(2)} + 2x-7`
// W(x) = -3x³ - x² + 2x - 7

License

MIT