evilstreak / markdown-js

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

Is there a way to add your own tags easily ? #161

Closed vinz243 closed 9 years ago

vinz243 commented 10 years ago

How to add tags such as >! or !!!?

codingisacopingstrategy commented 9 years ago

Easily would be exaggerating :)

But within the various JavaScript Markdown implementations this one allows for writing new Markdown ‘dialects’ in the most straightforward manner. A dialect can subclass an existing dialect so you only add the functions you want.

As @deadlyicon mentions in https://github.com/evilstreak/markdown-js/issues/226 there is not a lot of documentation for this, so the current process would be:

  1. read the README.md
  2. read the source code for the existing dialects (in the folder called dialects)
  3. write your own.