Skip to content

A CmsMadeSimple's module to parse markdown content

Notifications You must be signed in to change notification settings

Exacore/markdown

 
 

Repository files navigation

Markdown Parser

A wrapper for MARKDOWN's engines for CmsMadeSimple with differents rendering engines

If it's the first time you play with Markdown, please take a few moment to read this

You can call the parser in differents way

<?php 
  $parser = ModuleOperations::get_instance()->get_module_instance('Parser');
  echo $parser->GetParserInstance()->process($text);
?> 

or

<?php 
  $config = cmsms()->GetConfig();
  include_once($config['root_path'].'/modules/Parser/lib/class.Engine.php');
  echo Engine::initInstance()->process($text);
?> 

or in your Smarty templates :

{$untrustedText|markdown}

There is also more options available :

<?php 
  $config = cmsms()->GetConfig();
  include_once($config['root_path'].'/modules/Parser/lib/class.Engine.php');
  echo Engine::initInstance(Engine::$PARSDOWN)->process($text, true); 
  // will use PARSDOWN and will produce some debug trace.
?> 

We propose 3 differents engine for MarkDown :

Thank you erusev and michelf for your work.

About

A CmsMadeSimple's module to parse markdown content

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 96.9%
  • Smarty 3.1%