A Beautiful Markdown Parser in the Nim World.
nim-markdown is a Markdown Parser in the Nim world.
Install via nimble in your project root.
$ nimble install markdown
# or with current stable version
$ nimble install markdown@">= 0.8.0"
# or with the latest version
$ nimble install markdown@#head
Below is the minimal usage of using markdown as a library.
# 1. import pkg.
import markdown
# 2. transform md to html.
let html = markdown("# Hello World\nHappy writing Markdown document!")
# 3. do something :)
echo(html)
Below are some useful links:
The usage of binary markdown is as below:
# Read from stdin and write to stdout.
$ markdown < README.md > README.html
Build markdown binary:
$ nimble build
Test markdown modules:
$ nimble test
Build document:
$ nim doc --project --git.url=https://github.com/soasme/nim-markdown --git.commit=v0.7.0 src/markdown.nim
The Markdown Parser serves as a guidance on the implementation of nim-markdown, or in any generic programming language.
Priorities:
Features:
Released:
--gc:arc.--threads:on.~~~ as fence mark, etc. #12.config to proc markdown & support [url](<text> "title").markdown instead markdownpkg/core.Nim-markdown is based on MIT license.