Some parsedown extensions for wiki.php, based on tilde.team's tildewiki.
Go to file
Anton McClure 66cc6b3114
add missing license files
2021-08-14 17:00:05 +02:00
src Update name to match github org 2021-08-14 16:27:47 +02:00
.drone.yml set package url 2021-03-17 11:07:33 -04:00
.gitignore init 2019-07-03 00:23:33 -04:00
README.md Update name to match github org 2021-08-14 16:27:47 +02:00
agpl-3.0.txt add missing license files 2021-08-14 17:00:05 +02:00
composer.json Update name to match github org 2021-08-14 16:27:47 +02:00
gpl-3.0.txt add missing license files 2021-08-14 17:00:05 +02:00

README.md

wikiphp/components

Customized Mni/FrontYaml to use parsedown and a small collection of extensions for an updated wikiphp.

basic usage

  1. add to composer
composer require wikiphp/components
  1. get an instance
require_once __DIR__.'/vendor/autoload.php';
$parser = wikiphp\components::factory();
  1. set options
wikiphp\components::$bootstrap = true;
wikiphp\components::$forkawesome = true;
  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"];

License

Copyright (C) 2021 Anton McClure anton@tloks.com

This file is free software: you may copy, redistribute and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program; if not, see https://gnu.org/licenses or write to: Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor Boston, MA 02110-1301 USA

This file incorporates work covered by the following copyright and permission notice:

Copyright (C) 2019-2021 Ben Harris ben@tilde.team

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.