| Crates.io | gemrendr |
| lib.rs | gemrendr |
| version | 0.3.1 |
| created_at | 2025-11-30 02:07:28.579375+00 |
| updated_at | 2025-12-01 01:27:00.134728+00 |
| description | Turns Gemtext into idiomatic HTML |
| homepage | |
| repository | https://git.average.name/AverageHelper/gemrendr |
| max_upload_size | |
| id | 1957746 |
| size | 133,886 |
A specful Gemtext parser that turns Gemtext into idiomatic HTML fragments.
This project is designed mainly for use with Forgejo's pluggable markup system. For now, only stdin/stdout are supported. File I/O may come later.
no_std environments (library only)<br> or <p></p> tagsThis command:
echo '# Hello, world!' | gemrendr --no-preamble -O - -
results in the following markup:
<h1>Hello, world!</h1>
=> https://www.rust-lang.org/tools/install First, ensure cargo is installed.
Then run the following:
cargo install --index sparse+https://git.average.name/api/packages/AverageHelper/cargo/ gemrendr
After the build, the gemrendr binary should be installed on your system and ready to use.
=> https://www.rust-lang.org/tools/install First, ensure cargo is installed.
Then clone the repo, and run the following:
cargo install --path .
After the build, the gemrendr binary should be installed on your system and ready to use.
Take Gemtext from stdin and print HTML to stdout:
gemrendr --out-file=- -
Use gemrendr --help for more information.
=> https://forgejo.org/docs/latest/admin/config-cheat-sheet/#markup-markup doc
Add the following to your app.ini file:
[markup.gemtext]
ENABLED = true
NEED_POSTPROCESS = true
FILE_EXTENSIONS = .gmi,.gmni,.gemini
RENDER_COMMAND = "gemrendr --out-file=- -"
IS_INPUT_FILE = false
If you're using a Docker setup, be sure to link the gemrendr binary to the container's /usr/bin/gemrendr.
This crate may be imported into Rust projects using cargo add gemrendr.
=> https://docs.rs/gemrendr/ See our docs page for more information.
When used as a library, this project does not require the use of std features, only core and alloc. To enable no_std support, use --no-default-features when adding the crate, or set default-features = false in your Cargo.toml file.
All kinds of contributions are accepted, including reporting bugs via Issues and submitting code changes via Pull Requests. => https://git.average.name/AverageHelper/gemrendr/issues/ Issues => https://git.average.name/AverageHelper/gemrendr/pulls/ Pull Requests
While writing code for this project, consider running unit tests on your own machine periodically. Use cargo test for quick tests, and ./test.sh to test code coverage.