logseq2gemtext/run.php

16 lines
431 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
require __DIR__ . '/vendor/autoload.php';
$parser = new LogseqGem\Parser;
$page = file_get_contents("/Users/annika/sync/BTSync/logseq/pages/Gemlog.md");
$page = file_get_contents("/Users/annika/sync/BTSync/logseq/pages/Publishing to the Gemlog with logseq.md");
$document = $parser->parse($page);
foreach ($document->iterator() as $node) {
echo 'Current node: ' . get_class($node) . "\n";
}