Exemple #1
0
 public static function parseMarkdown($file)
 {
     $fh = fopen($file, 'r');
     $content = fread($fh, filesize($file));
     fclose($fh);
     return Markdown::defaultTransform($content);
 }
Exemple #2
0
 protected function teardown()
 {
     #
     # Clearing Extra-specific variables.
     #
     $this->footnotes = array();
     $this->footnotes_ordered = array();
     $this->footnotes_ref_count = array();
     $this->footnotes_numbers = array();
     $this->abbr_desciptions = array();
     $this->abbr_word_re = '';
     parent::teardown();
 }