Login   Register  
PHP Classes
elePHPant
Icontem

PHP Markdown Parser: Parse Markdown documents and generate HTML tags

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files Example   View files View files (62)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-08-26 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 265 This week: 3All time: 6,813 This week: 632Up
Version License PHP version Categories  
markdown 1.0.4BSD 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
Name: Manuel Lemos <contact>
Classes: 38 packages by
Country: Portugal Portugal
Age: 45
All time rank: 1
Week rank: 3 Down2 in Portugal Portugal Down

  Files folder image Files  
File Role Description
Files folder imagetest (1 file, 3 directories)
Plain text file markdown_parser.php Class Markdown parser class
Accessible without login Plain text file markdown_to_html.php Example Example of how to generate HTML from markdown parsing results
Accessible without login HTML file sample.html Data Sample output of the parsed simple.md file converted to HTML
Accessible without login Plain text file test_markdown_parser.php Example Test markdown parser class

  Files folder image Files  /  test  
File Role Description
Files folder imageexpect (28 files)
Files folder imagegenerated (1 file)
Files folder imagesample (28 files)
  Accessible without login Plain text file test.php Test Main test script

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

  Files folder image Files  /  test  /  generated  
File Role Description
  Accessible without login Plain text file .cvsignore Data CVS ignore file list

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

Downloadmarkdown-2014-08-26.zip 76KB
Downloadmarkdown-2014-08-26.tar.gz 61KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Secure HTML parser and filter Download .zip .tar.gz Convert parsed Markdown tags to HTML Conditional
 Version Control Unique User Downloads Download Rankings  
 98%Total:265All time:6,813
 This week:3This week:632Up