Landmark is a small but extensible JavaScript library that allows to render Markdown documents into HTML. VanTigranyan's original gist is the engine used for Sitemark and some other projects.
Landmark features only 2 methods:
Landmark.render(text)
- takes the Markdown source and returns ready HTML code (you'll only need this most of the time)