CMarkdown usage examples

You can use CMarkdown class as typical Yii widget:

<?php $this->beginWidget('CMarkdown'); ?>
_Markdown_ *example*
<?php $this->endWidget(); ?>

or directly as a function:

$text = '_Markdown_ *example*';
$md = new CMarkdown;
echo $md->transform($text);

That’s pretty much everything, folks!

Leave a Reply