An open API service indexing awesome lists of open source software.

https://github.com/qwreey/lune-markdown-rs

markdown-rs binding for lune runtime
https://github.com/qwreey/lune-markdown-rs

luau lune markdown web

Last synced: 11 months ago
JSON representation

markdown-rs binding for lune runtime

Awesome Lists containing this project

README

          

# markdown-rs

Simple [markdown-rs](https://github.com/wooorm/markdown-rs) wrapper for lune runtime, with ffi edge feature.

## Example usage

Run `cargo build --profile=release` first to get shared object.

```luau
local markdown_rs = require("./")
.new(require("@lune/process").args[1] or "./target/release/liblune_markdown_rs.so")

-- Throw error if syntax error in code
local result = markdown_rs:to_html([[
# hello

**Hello** _world_ `in`

> mark

\`\`\`
down
\`\`\`
]])

print(result)
--[[

hello

Hello world in


mark


down

]]
```