mirror of
https://tildegit.org/sbgodin/HtmGem.git
synced 2023-08-25 13:53:12 +02:00
11 lines
322 B
PHP
11 lines
322 B
PHP
<?php if (empty(@$_SERVER['SHELL']) or count($argv)<2) die();
|
|
|
|
$fileName = $argv[1];
|
|
|
|
require_once dirname(__FILE__)."/../../lib-htmgem.php";
|
|
|
|
$text = file_get_contents($fileName);
|
|
$parsedGemtext = \htmgem\gemtextParser($text);
|
|
$gt_gemtext = new \htmgem\GemtextTranslate_gemtext($parsedGemtext);
|
|
echo strval($gt_gemtext);
|