summaryrefslogtreecommitdiff
path: root/test/gemtext.php
blob: 2cf7ed7e5ec10fe5ba13e10e104b86fc4bc1d2db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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());