minetro/uniparser

This package is abandoned and no longer maintained. The author suggests using the contributte/uniparser package instead.

Universal text parser (Texy, Markdown, Parsedown) for Nette & Nette/Latte

1.0.0 2015-05-05 11:18 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:47:20 UTC


README

68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f6769747465722f6379616e 68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f666f72756d2f79656c6c6f77 68747470733a2f2f62616467656e2e6e65742f62616467652f73706f6e736f722f646f6e6174696f6e732f463936383534

Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte

Disclaimer

⚠️ This project is no longer being maintained. Please use contributte/latte.
Composer minetro/uniparser
Version
PHP
License

Dependencies

TexyAdapter

"texy/texy": "~2.6.0"

ParsedownAdapter

"erusev/parsedown-extra": "~0.7.0"

MarkdownAdapter

"michelf/php-markdown": "~1.5.0"

Usage

Standalone

use Minetro\Uniparser\ParserFactory;

$factory = new ParserFactory();

$adapter = $factory->create('parsedown');

echo $adapter->parse($text);

Latte

uniparser.factory: Minetro\Uniparser\ParserFactory

nette.latteFactory:
	setup:
		- addFilter(texy, [@uniparser.factory::create('texy'), parse])
		- addFilter(parsedown, [@uniparser.factory::create('parsedown'), parse])
		- addFilter(markdown, [@uniparser.factory::create('markdown'), parse])

Development

This package was maintain by these authors.

538058?v=3&s=80

Consider to support contributte development team. Also thank you for being used this package.