diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-11-12 11:16:56 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-11-20 17:30:04 +0100 |
commit | 6df3d321d9b67c4541f50158b087d37c4b22e886 (patch) | |
tree | 06031988bb4b957b76f051af366ced448a48545f /test/gemtext.php |
initial commit
Diffstat (limited to 'test/gemtext.php')
-rw-r--r-- | test/gemtext.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/gemtext.php b/test/gemtext.php new file mode 100644 index 0000000..2cf7ed7 --- /dev/null +++ b/test/gemtext.php @@ -0,0 +1,27 @@ +<?php + +use GeminiFoundation\Gemtext; + +require dirname(__DIR__) . '/vendor/autoload.php'; + +$parser = new Gemtext(<<<GEMTEXT + # heading + + text + + * listitem 1 + * listitem 2 + + ```formatted + { + "key": "value" + } + ``` + + > quote + + => /link + => /link link + GEMTEXT); + +var_dump($parser->parse()); |