liberty
[ class tree: liberty ] [ index: liberty ] [ all elements ]

Source for file format.markdown.php

Documentation is available at format.markdown.php

  1. <?php
  2. /**
  3.  * @version  $Revision$
  4.  * @package  liberty
  5.  * @subpackage plugins_format
  6.  */
  7.  
  8. /**
  9.  * Initialization
  10.  */
  11. global $gLibertySystem;
  12.  
  13. /**
  14.  * definitions
  15.  */
  16. define'PLUGIN_GUID_MARKDOWN''markdown' );
  17.  
  18. $pluginParams array (
  19.     'load_function'   => 'markdown_parse_data',
  20.     'verify_function' => 'markdown_verify_data',
  21.     'auto_activate'   => FALSE,
  22.     'description'     => 'This parser allows you to use plain text, which is then converted to HTML. For the full syntax, please view <a href ="http://daringfireball.net/projects/markdown/syntax">Markdown Syntax</a>',
  23.     'edit_label'      => 'Markdown',
  24.     'edit_field'      => PLUGIN_GUID_MARKDOWN,
  25.     'plugin_type'     => FORMAT_PLUGIN,
  26.     'linebreak'       => "\r\n"
  27. );
  28. $gLibertySystem->registerPluginPLUGIN_GUID_MARKDOWN$pluginParams );
  29.  
  30. function markdown_verify_data&$pParamHash {
  31.     $pParamHash['content_store']['data'$pParamHash['edit'];
  32. }
  33.  
  34. function markdown_parse_data&$pParseHash&$pCommonObject {
  35.     require_onceUTIL_PKG_PATH.'markdown.php' );
  36.     return Markdown$pParseHash['data');
  37. }

Documentation generated on Wed, 29 Jul 2015 13:56:35 +0000 by phpDocumentor 1.5.0-lsces