evilstreak / markdown-js

A Markdown parser for javascript
7.7k stars 863 forks source link

. #56

Closed GHANONTEST closed 12 years ago

GHANONTEST commented 12 years ago

.

ashb commented 12 years ago

Closing this as #57 has a pull request - it'll come soon.

ashb commented 12 years ago

Writing dialects involves writing a set of matcher functions (at the block level) and patterns+matchers for inline. See https://github.com/evilstreak/markdown-js/blob/master/lib/markdown.js#L184-204

Inline matchers return an array of [ number_of_chars_processed, jsonml ]. The key in the inline hash is the start characters to look for. Admittedly not the easiest thing without digging a bit I know.

zauguin commented 12 years ago

The static function is ready. Have you already tested the code?