wrote / gmi2md
Gemtext to markdown converter.
0.0.4
2025-05-26 05:46 UTC
Requires (Dev)
- phpunit/phpunit: ^11.4
This package is not auto-updated.
Last update: 2025-09-01 07:12:21 UTC
README
This is a minimal gemtext to markdown converter.
Gemtext is already close markdown, and gemtext is mostly valid markdown out of the box. The biggest difference is the link format. These are valid gemtext links:
=> https://sourcehut.org/
=> https://duck.com DuckDuckGo
=>/home My homepage
These would be converted to the following markdown:
* [https://sourcehut.org](https://sourcehut.org)
* [DuckDuckGo](https://duck.com)
* [My homepage](/home)
Everything else in gemtext is also valid markdown and is left untouched.
Installation
tbd
Usage
<?php
use Wrote\Gmi2md;
$gmi = "=> https://sourcehut.org/ Sourcehut homepage";
$md = Gmi2md::convert($gmi); // [Sourcehut homepage](https://sourcehut.org/)