krilnon / markdown-ometa

A Markdown processor in OMeta

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

markdown-ometa

A Markdown processor in OMeta. This fork focuses on making an npm module out of the original editor demonstration.

Example Usage

var 
	md = require('markdown-ometa'),
	util = require('util')

var testString = '# Big Header\n\
## Sub Header\n\
### Sub Sub Header\n\
This *is a* paragraph, _really_. You must\n\
use **double** new lines to separate\n\
the paragraphs\n\n\
like this.\n\n```\nvar and = plus("Here\'s some code.")```\n'

init()

function init(){
	console.log(testString) // print the Markdown before it's processed
	console.log(util.inspect(md.parse(testString), { depth: 5 })) // print the processed Markdown
}

Contributors

  • Josh Marinacci (original author)
  • Page @Page-
  • Felix Breuer
  • krilnon (this fork)

See also

About

A Markdown processor in OMeta


Languages

Language:JavaScript 100.0%