Contributte Uniparser
Website 🚀 contributte.org | Contact 👨🏻💻 f3l1x.io | Twitter 🐦 @contributte
# Disclaimer
⚠️ | This project is no longer being maintained. Please use contributte/latte (opens new window). |
---|
Composer | minetro/uniparser (opens new window) |
---|---|
Version | |
PHP | |
License |
# Dependencies
# TexyAdapter
"texy/texy": "~2.6.0"
1
# ParsedownAdapter
"erusev/parsedown-extra": "~0.7.0"
1
# MarkdownAdapter
"michelf/php-markdown": "~1.5.0"
1
# Usage
# Standalone
use Minetro\Uniparser\ParserFactory;
$factory = new ParserFactory();
$adapter = $factory->create('parsedown');
echo $adapter->parse($text);
1
2
3
4
5
6
7
2
3
4
5
6
7
# 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])
1
2
3
4
5
6
7
2
3
4
5
6
7
# Development
This package was maintain by these authors.
Consider to support (opens new window) contributte development team. Also thank you for being used this package.