altiore / yii2-markdown
Yii2 markdown parser and editor
Package info
github.com/altiore/yii2-markdown
Type:yii2-extension
pkg:composer/altiore/yii2-markdown
1.0.2
2016-06-27 08:32 UTC
Requires
- bower-asset/simplemde: 1.11.*
- erusev/parsedown: 1.6.*
- yiisoft/yii2: 2.0.*
This package is not auto-updated.
Last update: 2026-03-05 02:34:03 UTC
README
Yii2 markdown parser and editor
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist altiore/yii2-markdown "*"
or add
"altiore/yii2-markdown": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
- Convert markdown to html:
<?= \altiore\yii2\markdown\Markdown::convert($markdownText); ?>
- Editor markdown in yii2 form:
<?= $form->field($model, 'text')->widget(\altiore\yii2\markdown\MarkdownEditor::class) ?>