ruivieira / nim-slimdown

Nim module that converts Markdown text to HTML using only regular expressions. Based on jbroadway's Slimdown.
MIT License
10 stars 1 forks source link
library markdown markdown-to-html nim

Build Status

nim-slimdown

About

A simple pattern-based markdown parser based on Johnny Broadway's (johnny@johnnybroadway.com) PHP Slimdown.

Building

Clone and run:

nimble build
nimble install

Usage

import slimdown

let markdown = """
# Examples

##Bold

This is a markdown *example*
"""

let html = slimdown.md(markdown)

# <h1>Examples</h1>
#
# <h2>Bold</h2>
#
# This is a markdown <em>example</em>