Unifies []()
to work on text, images, and links! Arguments alone are how elements differentiate
—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!
[]
selects content; ()
are its attributes, like color:
|
And links are really just text:
|
Image sizes are attributes, too:
|
const md = require('markdown-it')()
md.use(require('@jotdoc/unify'))
Define your own colors or override HTML defaults:
...
const unify = require('@jotdoc/unify')
md.use(unify))
unify.userColor.push({
name: 'pale',
color: '#ddf'
})