Markdown module for V. For now, it uses the md4c library for parsing markdown files to HTML and soon it will be rewritten from scratch to pure V.
module main
import markdown
fn main() {
text := '# Markdown Rocks!'
output := markdown.to_html(text)
println(output) // <h1>Markdown Rocks!</h1>
}
Install and use markdown module via VPM:
v install markdown
Or via vpkg:
vpkg get https://github.com/vlang/markdown --global
Or through Git:
git clone https://github.com/vlang/markdown.git ~/.vmodules/markdown
- Ned Palacios (@nedpals)