unified extensions for tilde wikis

2.0.8 2022-02-16 18:31 UTC

This package is auto-updated.

Last update: 2024-04-16 23:32:34 UTC


README

Build Status

customized Mni/FrontYaml to add a consistent collection of commonmark extensions used across several tildeverse sites to power the wiki.

basic usage

  1. add tildewiki
composer require tildeteam/wiki
  1. 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();
  1. parse stuff
$parsed = $parser->parse(file_get_contents("my.md"));
echo $parsed->getContent();
  1. get yaml frontmatter values
echo $parsed->getYAML()["my_yaml_key"];