PHP Markdown Parser: Parse Markdown documents and generate HTML tags

Recommend this page to a friend!
  Info   Example   View files (63)   Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 364 All time: 6,739 This week: 327
Version License PHP version Categories
markdown 1.0.8BSD License4HTML, Parsers
Description Author

This class can parse Markdown documents and generate HTML tags.

It can take text string or a file in Markdown format and parse it to convert the document into HTML tags.

The parsed tags can be converted to HTML or another format using a separate component.

Currently it supports Markdown tags for headings, paragraphs, ordered and unordered lists, links, images, code, strong and emphasis.

Picture of Manuel Lemos
  Performance   Level  
Name: Manuel Lemos is available for providing paid consulting. Contact Manuel Lemos .
Classes: 41 packages by
Country: Portugal Portugal
Age: 51
All time rank: 1
Week rank: 4 1 in Portugal Portugal

  Files  
File Role Description
test (1 file, 3 directories)
markdown_parser.php Class Markdown parser class
markdown_preview.php Appl. Markdown render preview form script
markdown_to_html.php Example Example of how to generate HTML from markdown parsing results
sample.html Data Sample output of the parsed simple.md file converted to HTML
test_markdown_parser.php Example Test markdown parser class

  Files  /  test  
File Role Description
expect (28 files)
generated (1 file)
sample (28 files)
   test.php Test Main test script

  Files  /  test  /  expect  
File Role Description
   Amps-and-angle-encoding.html Data Original test HTML output file by John Gruber
   Auto-links.html Data Original test HTML output file by John Gruber
   Backslash-escapes.html Data Original test HTML output file by John Gruber
   Blockquotes-with-code-blocks.html Data Original test HTML output file by John Gruber
   code.txt Data Code test expected output
   emphasis.txt Data Emphasis test expected output
   Hard-wrapped-parag...ist-like-lines.html Data Original test HTML output file by John Gruber
   headers.txt Data Headers test expected output
   Horizontal-rules.html Data Original test HTML output file by John Gruber
   images.txt Data Images test expected output
   image_links.txt Data Links with image test expected output
   Inline-HTML-Advanced.html Data Original test HTML output file by John Gruber
   Inline-HTML-comments.html Data Original test HTML output file by John Gruber
   Inline-HTML-Simple.html Data Original test HTML output file by John Gruber
   Links-inline-style.html Data Original test HTML output file by John Gruber
   Links-reference-style.html Data Original test HTML output file by John Gruber
   links.txt Data Links test expected output
   lists.txt Data Lists test expected output
   Literal-quotes-in-titles.html Data Original test HTML output file by John Gruber
   Markdown-Documentation-Basics.html Data Original test HTML output file by John Gruber
   Markdown-Documentation-Syntax.html Data Original test HTML output file by John Gruber
   Nested-blockquotes.html Data Original test HTML output file by John Gruber
   Ordered-and-unordered-lists.html Data Original test HTML output file by John Gruber
   sample.txt Data Expected test output
   Strong-and-em-together.html Data Original test HTML output file by John Gruber
   strong.txt Data String test expected output
   Tabs.html Data Original test HTML output file by John Gruber
   Tidyness.html Data Original test HTML output file by John Gruber

  Files  /  test  /  generated  
File Role Description
   .cvsignore Data CVS ignore file list

  Files  /  test  /  sample  
File Role Description
   Amps-and-angle-encoding.text Data Original test Markdown file by John Gruber
   Auto-links.text Data Original test Markdown file by John Gruber
   Backslash-escapes.text Data Original test Markdown file by John Gruber
   Blockquotes-with-code-blocks.text Data Original test Markdown file by John Gruber
   code.md Data Code markdown sample
   emphasis.md Data Emphasis markdown sample
   Hard-wrapped-parag...ist-like-lines.text Data Original test Markdown file by John Gruber
   headers.md Data Headers markdown sample
   Horizontal-rules.text Data Original test Markdown file by John Gruber
   images.md Data Images markdown sample
   image_links.md Data Links with image markdown sample
   Inline-HTML-Advanced.text Data Original test Markdown file by John Gruber
   Inline-HTML-comments.text Data Original test Markdown file by John Gruber
   Inline-HTML-Simple.text Data Original test Markdown file by John Gruber
   Links-inline-style.text Data Original test Markdown file by John Gruber
   Links-reference-style.text Data Original test Markdown file by John Gruber
   links.md Data Links markdown sample
   lists.md Data Lists markdown sample
   Literal-quotes-in-titles.text Data Original test Markdown file by John Gruber
   Markdown-Documentation-Basics.text Data Original test Markdown file by John Gruber
   Markdown-Documentation-Syntax.text Data Original test Markdown file by John Gruber
   Nested-blockquotes.text Data Original test Markdown file by John Gruber
   Ordered-and-unordered-lists.text Data Original test Markdown file by John Gruber
   sample.md Data Simple markdown document for testing
   Strong-and-em-together.text Data Original test Markdown file by John Gruber
   strong.md Data Strong markdown sample
   Tabs.text Data Original test Markdown file by John Gruber
   Tidyness.text Data Original test Markdown file by John Gruber

markdown-2016-02-02.zip 81KB
markdown-2016-02-02.tar.gz 66KB
Install with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Secure HTML parser and filter .zip .tar.gz Convert parsed Markdown tags to HTML Conditional
 Version Control Unique User Downloads Download Rankings  
 98%
Total:364
This week:0
All time:6,739
This week:327

For more information send a message to info at phpclasses dot org.