784 B
784 B
tildewiki
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"];