unified extensions for tilde wikis

Maintainers

Package info

tildegit.org/team/tildewiki

pkg:composer/tildeteam/wiki

Statistics

Installs: 84

Dependents: 0

Suggesters: 0

2.0.9 2024-06-18 14:47 UTC

This package is auto-updated.

Last update: 2026-03-18 18:35:46 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"];