tildeteam / wiki
unified extensions for tilde wikis
2.0.9
2024-06-18 14:47 UTC
Requires
- mnapoli/front-yaml: ^2.0
Requires (Dev)
- phpunit/phpunit: ^10.5
README
customized Mni/FrontYaml to add a consistent collection of commonmark extensions used across several tildeverse sites to power the wiki.
basic usage
- add tildewiki
composer require tildeteam/wiki
- get an instance
require_once __DIR__.'/vendor/autoload.php';
// pass true to the constructor to automatically add bootstrap classes to tables
$parser = tildeteam\wiki::factory();
- parse stuff
$parsed = $parser->parse(file_get_contents("my.md"));
echo $parsed->getContent();
- get yaml frontmatter values
echo $parsed->getYAML()["my_yaml_key"];