All Projects → developit → Snarkdown

developit / Snarkdown

Licence: mit
😼 A snarky 1kb Markdown parser written in JavaScript

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Snarkdown

Md
A markdown parser and compiler. Built for speed.
Stars: ✭ 128 (-92.94%)
Mutual labels:  markdown, parser
Ngx Markdown
Angular markdown component/directive/pipe/service to parse static, dynamic or remote content to HTML with syntax highlight
Stars: ✭ 687 (-62.11%)
Mutual labels:  markdown, parser
Md4c
C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
Stars: ✭ 322 (-82.24%)
Mutual labels:  markdown, parser
Parsedown
Better Markdown Parser in PHP
Stars: ✭ 13,959 (+669.94%)
Mutual labels:  markdown, parser
React Native Markdown Package
React native markdown package is a Library for implementing markdown syntax in React Native
Stars: ✭ 50 (-97.24%)
Mutual labels:  markdown, parser
Termimad
A library to display rich (Markdown) snippets and texts in a rust terminal application
Stars: ✭ 293 (-83.84%)
Mutual labels:  markdown, parser
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 (+189.69%)
Mutual labels:  markdown, parser
React Markdown Editor Lite
a light-weight Markdown editor based on React. 一款轻量的基于React的markdown编辑器
Stars: ✭ 553 (-69.5%)
Mutual labels:  markdown, parser
Parsedown Extra Plugin
Configurable Markdown to HTML converter with Parsedown Extra Plugin.
Stars: ✭ 47 (-97.41%)
Mutual labels:  markdown, parser
Markdown Wasm
Markdown parser and HTML generator implemented in WebAssembly, based on md4c
Stars: ✭ 833 (-54.05%)
Mutual labels:  markdown, parser
Diagon
Interactive ASCII art diagram generators. 🌟
Stars: ✭ 189 (-89.58%)
Mutual labels:  markdown, parser
Elm Markdown
Pure Elm markdown parsing and rendering
Stars: ✭ 96 (-94.7%)
Mutual labels:  markdown, parser
Vue Styleguidist
Created from react styleguidist for Vue Components with a living style guide
Stars: ✭ 2,133 (+17.65%)
Mutual labels:  markdown, parser
Craftinginterpreters
Repository for the book "Crafting Interpreters"
Stars: ✭ 4,298 (+137.07%)
Mutual labels:  markdown, parser
Ink
A fast and flexible Markdown parser written in Swift.
Stars: ✭ 2,049 (+13.02%)
Mutual labels:  markdown, parser
Marked
A markdown parser and compiler. Built for speed.
Stars: ✭ 26,556 (+1364.75%)
Mutual labels:  markdown, parser
Marko
A markdown parser with high extensibility.
Stars: ✭ 77 (-95.75%)
Mutual labels:  markdown, parser
Commonmark Java
Java library for parsing and rendering CommonMark (Markdown)
Stars: ✭ 1,675 (-7.61%)
Mutual labels:  markdown, parser
Honkit
📖 HonKit is building beautiful books using Markdown - Fork of GitBook
Stars: ✭ 1,901 (+4.85%)
Mutual labels:  markdown
Press
Cross-platform markdown editor written in Kotlin Multiplatform (work in progress)
Stars: ✭ 1,748 (-3.59%)
Mutual labels:  markdown

Snarkdown

Snarkdown npm

Snarkdown is a dead simple 1kb Markdown parser.

It's designed to be as minimal as possible, for constrained use-cases where a full Markdown parser would be inappropriate.

Features

  • Fast: since it's basically one regex and a huge if statement
  • Tiny: it's 1kb of gzipped ES3
  • Simple: pass a Markdown string, get back an HTML string

Note: Tables are not yet supported. If you love impossible to read regular expressions, submit a PR!

Note on XSS: Snarkdown doesn't sanitize HTML, since its primary target usage doesn't require it.

Demos & Examples

Usage

Snarkdown exports a single function, which parses a string of Markdown and returns a String of HTML. Couldn't be simpler.

The snarkdown module is available in every module format you'd ever need: ES Modules, CommonJS, UMD...

import snarkdown from 'snarkdown';

let md = '_this_ is **easy** to `use`.';
let html = snarkdown(md);
console.log(html);
// <em>this</em> is <strong>easy</strong> to <code>use</code>.

Add-ons and Libraries

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].