PHP Classes

PHP Markdown Parser: Parse Markdown documents and generate HTML tags

Recommend this page to a friend!
  Info   View files Example   View files View files (65)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 380 All time: 6,714 This week: 135Up
Version License PHP version Categories
markdown 1.0.10BSD 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: 45 packages by
Country: Portugal Portugal
Age: 54
All time rank: 1
Week rank: 7 Down1 in Portugal Portugal Equal

  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_preview.php Appl. Markdown render preview form script
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 (29 files)
Files folder imagegenerated (1 file)
Files folder imagesample (29 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 lists_with_code.txt Doc. Lists with code text 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 lists_with_code.md Data Lists with code 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-2020-12-20.zip 83KB
Downloadmarkdown-2020-12-20.tar.gz 70KB
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:380
This week:0
All time:6,714
This week:135Up