some markdown extensions for php wikis https://tilde.team/wiki/
Go to file
Ben Harris 11effb4782
continuous-integration/drone/push Build is passing Details
Update '.drone.yml'
add `-s` to curl
2022-02-25 21:49:38 +00:00
src switch to default_attributes extension 2022-02-16 13:31:48 -05:00
tests switch to default_attributes extension 2022-02-16 13:31:48 -05:00
.drone.yml Update '.drone.yml' 2022-02-25 21:49:38 +00:00
.gitignore init 2019-07-03 00:23:33 -04:00
README.md switch parsedown to commonmark 2022-02-14 16:40:08 -05:00
composer.json include php versions in composer.json 2022-02-14 16:43:39 -05:00
composer.lock rollback some deps installed with php8.1 2022-02-14 16:52:22 -05:00

README.md

tildewiki

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"];