This project came to light while working on a larger one. I was looking for something that would give me easy atomic control over the HTML tags that replace the markdown syntax. After looking at a few, I decided to implement and open-source my own.
The basic idea (and the biggest difference from other markdown libraries) is splitting the functionality into a lexer and a parser, so other parsers can easily be created by simply adding a parse map and replacing the tokens from the lexer. Both the lexicon and the parse map are exposed to allow for specific modification of HTML tags.
It's in a working state at the moment, but certain things such as syntax highlighting and markdown within quote blocks will depend on how much use it gets.
1 comment
[ 4.5 ms ] story [ 9.5 ms ] threadThe basic idea (and the biggest difference from other markdown libraries) is splitting the functionality into a lexer and a parser, so other parsers can easily be created by simply adding a parse map and replacing the tokens from the lexer. Both the lexicon and the parse map are exposed to allow for specific modification of HTML tags.
It's in a working state at the moment, but certain things such as syntax highlighting and markdown within quote blocks will depend on how much use it gets.
Hope someone finds this useful other than myself!