https://github.com/vlang/markdown
https://github.com/vlang/markdown
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vlang/markdown
- Owner: vlang
- License: mit
- Created: 2020-05-29T15:00:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-04T01:27:12.000Z (over 1 year ago)
- Last Synced: 2025-01-16T07:26:41.724Z (over 1 year ago)
- Language: V
- Size: 156 KB
- Stars: 52
- Watchers: 32
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# markdown
Markdown module for V. For now, it uses the [md4c](https://github.com/mity/md4c) library for parsing markdown files to HTML and soon it will be rewritten from scratch to pure V.
## Usage
```v
module main
import markdown
fn main() {
text := '# Markdown Rocks!'
output := markdown.to_html(text)
println(output) //
Markdown Rocks!
}
```
## Installation
Install and use markdown module via VPM:
```
v install markdown
```
Or via [vpkg](https://github.com/vpkg-project/vpkg):
```
vpkg get https://github.com/vlang/markdown --global
```
Or through Git:
```
git clone https://github.com/vlang/markdown.git ~/.vmodules/markdown
```
## Contributors
- Ned Palacios ([@nedpals](https://github.com/nedpals))