//
  • Two or more spaces at a line\'s end = Line break
  • //
  • Double returns = Paragraph
  • //
  • *Single asterisks* or _single underscores_ = Emphasis
  • //
  • **Double** or __double__ = Strong
  • //
  • This is [a link](http://the.link.com "The optional title text")
  • // For complete details on the Markdown syntax, see the Markdown documentation.'); $the_output = t('No tips available yet.'); } else { $the_output = t('No tips available yet.'); // $the_output = t('You can use !link to format and style the text.', array('!link' => l(t('Markdown syntax'), 'filter/tips'))); } return $the_output; } function restext_help($in_section = 'admin/help#restext') { switch ($in_section) { case 'admin/settings/modules#description': $the_output = t('Allows content to be submitted using reStructuredText, a simple plain-text syntax that is transformed into valid XHTML.'); break; case 'admin/help#restext': $the_output = t('

    The reStructuredText module allows you to enter content using reStructuredText, a simple plain-text syntax that is transformed into valid XHTML.

    '); break; } return $the_output; } /******************************************************************** * Module Functions ********************************************************************/ function _restext_process($text, $format) { require_once(dirname(__FILE__) . '/rest.php'); if (variable_get("restructuredtext_is_restructured_on_$format", 1) == 1) { $text = reST($text); } return $text; } function _restext_settings($format) { require_once(dirname(__FILE__) . '/rest.php'); $form['restructured_settings'] = array( '#type' => 'fieldset', '#title' => t('reStructuredText'), '#collapsible' => TRUE, '#collapsed' => TRUE, ); $form['restructured_settings']['help'] = array( '#type' => 'markup', '#value' => '

    Please read the reStructuredText documentation for full details on its formatting syntax.

    ', ); $form['restructured_settings']["restructuredtext_is_restructured_on_$format"] = array( '#type' => 'select', '#title' => t('Enable reStructuredText?'), '#default_value' => variable_get("restructuredtext_is_restructured_on_$format", 1), '#options' => array(0 => t('No'), 1 => t('Yes')), ); $the_output = '

    reStructuredText PHP Version: '.$GLOBALS['reStructuredTextPHPVersion'].'
    '; // $the_output .= 'reStructuredText Syntax Version: '.$GLOBALS['reStructuredTextSyntaxVersion'].'
    '; $form['restructured_settings']['restructured_status'] = array( '#type' => 'markup', '#value' => $the_output, ); return $form; } ?>