mirror of
https://github.com/ruivieira/nim-slimdown
synced 2026-01-02 16:14:50 +00:00
No description
|
|
||
|---|---|---|
| .gitignore | ||
| .travis.yml | ||
| LICENSE | ||
| README.md | ||
| slimdown.nim | ||
| slimdown.nimble | ||
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>