All Projects → geekplux → markdown-it-fence

geekplux / markdown-it-fence

Licence: MIT license
fence customize plugin for markdown-it

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to markdown-it-fence

Markvis
make visualization in markdown. 📊📈
Stars: ✭ 1,509 (+7445%)
Mutual labels:  markdown-it, markdown-it-plugin
twoslash
You take some Shiki, add a hint of TypeScript compiler, and 🎉 incredible static code samples
Stars: ✭ 596 (+2880%)
Mutual labels:  markdown-it, markdown-it-plugin
markdown-it-github-headings
Add anchors and links to headings just like Github does
Stars: ✭ 22 (+10%)
Mutual labels:  markdown-it
menote
A simple, beautiful Markdown editor powered by vue.js, ace, markdown-it. ✨
Stars: ✭ 56 (+180%)
Mutual labels:  markdown-it
tw5-markdown
Comprehensive Markdown plugin for TiddlyWiki
Stars: ✭ 26 (+30%)
Mutual labels:  markdown-it
motion-markdown-it
Ruby/RubyMotion version of Markdown-it (CommonMark compliant parser and extendable)
Stars: ✭ 42 (+110%)
Mutual labels:  markdown-it
markdown-it-multimd-table
Multimarkdown table syntax plugin for markdown-it markdown parser
Stars: ✭ 104 (+420%)
Mutual labels:  markdown-it-plugin
markdown-it-kbd
markdown-it plugin for keystrokes. Renders [[x]] as <kbd>x</kbd>
Stars: ✭ 25 (+25%)
Mutual labels:  markdown-it
autobadge
Simple CLI tool to generate essential repository badges with ease
Stars: ✭ 16 (-20%)
Mutual labels:  markdown-it
Nodeppt
This is probably the best web presentation tool so far!
Stars: ✭ 9,589 (+47845%)
Mutual labels:  markdown-it
Remarkable
Markdown parser, done right. Commonmark support, extensions, syntax plugins, high speed - all in one. Gulp and metalsmith plugins available. Used by Facebook, Docusaurus and many others! Use https://github.com/breakdance/breakdance for HTML-to-markdown conversion. Use https://github.com/jonschlinkert/markdown-toc to generate a table of contents.
Stars: ✭ 5,252 (+26160%)
Mutual labels:  markdown-it
Markdown-for-Documentation
Markdown is a HTML compatible language used for Documentation.
Stars: ✭ 14 (-30%)
Mutual labels:  markdown-it
vite-plugin-md
Markdown with Vue for Vite
Stars: ✭ 289 (+1345%)
Mutual labels:  markdown-it
markdown-it-calendar
Automatically produced markdown-it-calendar
Stars: ✭ 23 (+15%)
Mutual labels:  markdown-it

markdown-it-fence

NPM version NPM downloads Build Status codecov donate

fence customize plugin for markdown-it

Install

yarn add markdown-it-fence --save
npm install markdown-it-fence --save

Usage

const markdownitfence = require('markdown-it-fence')

function yourPlugin (md, options) {
  return markdownitfence(md, 'yourPluginName', {
    marker: yourMarker,   // default is '`'
    render: yourRender,
    validate: yourValidate
  })
}

const md = require('markdown-it')();
md.use(yourPlugin).render(`content you want to parse`)

Option params

marker

Type: string
Default: `

Marker of fence block.

render

Type: function
Default: defaultRender

Render function.

validate

Type: function
Default: defaultValidate

Validate function.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

markdown-it-fence © geekplux, Released under the MIT License.
Authored and maintained by geekplux with help from contributors (list).

github.com/geekplux · GitHub @geekplux · Twitter @geekplux

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].