Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 703 Bytes

File metadata and controls

32 lines (17 loc) · 703 Bytes

Markdown library for CodeIgniter

Markdown is awesome it is a text-to-HTML conversion tool for web writers

Based on PHP Markdown by Michel Fortin (v1.0.1o - Sun 8 Jan 2012) PHP Markdown.

Original Markdown by John Gruber [Markdown] (http://daringfireball.net/projects/markdown/).

Installation

  1. Copy the cimarkdown.php to your libraries directory

  2. Load the cimarkdown library in your controller

Usage

$this->load->library('cimarkdown');

$this->cimarkdown->markit($markdowndemo);

where $markdowndemo is a variable which contains the markdown text entered by the user