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
- Host: GitHub
- URL: https://github.com/qwreey/lune-markdown-rs
- Owner: qwreey
- License: mit
- Created: 2024-11-12T14:40:58.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-12T18:02:57.000Z (over 1 year ago)
- Last Synced: 2025-07-21T17:27:00.072Z (11 months ago)
- Topics: luau, lune, markdown, web
- Language: Luau
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
]]
```