Skip to content

altiore/yii2-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Markdown

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 :

  1. Convert markdown to html:
<?= \altiore\yii2\markdown\Markdown::convert($markdownText); ?>
  1. Editor markdown in yii2 form:
<?= $form->field($model, 'text')->widget(\altiore\yii2\markdown\MarkdownEditor::class) ?>

About

Markdown parser, markdown editor

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages