0.2.1 • Published 6 years ago

markup-parser v0.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

markup-parser

Build Status Dependency Status Code Climate npm version

Live preview of slack like markup.

A set of primitives for building string markup parsers. See markups/*.ts for a setup that exports a tokenizer and parser to handle string formatting like slack does. Check out example.ts to see how to use the tokenizer + parser with any given string input.

TODO:

  • docs

Architecture

  • String is processed in three steps:
  1. Tokenizer(text) -> Token[]
  2. Parser(Token[]) -> NodeTree
  3. NodeTree(text) -> processed text
0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago