dolibarr  7.0.0-beta
Functions
parsemd.lib.php File Reference

This file contains functions dedicated to MD parsind. More...

Go to the source code of this file.

Functions

 dolMd2Html ($content, $parser='parsedown', $replaceimagepath=null)
 Function to parse MD content into HTML. More...
 

Detailed Description

This file contains functions dedicated to MD parsind.

Definition in file parsemd.lib.php.

Function Documentation

dolMd2Html (   $content,
  $parser = 'parsedown',
  $replaceimagepath = null 
)

Function to parse MD content into HTML.

Parameters
string$contentMD content
string$parser'parsedown' or 'nl2br'
string$replaceimagepathReplace path to image with another path. Exemple: ('doc/'=>'xxx/aaa/')
Returns
string Parsed content

Definition at line 32 of file parsemd.lib.php.

Referenced by DolibarrModules\getChangeLog(), and DolibarrModules\getDescLong().