SPLINT Packages Wiki Downloads {} Blog Log In Sign Up

SPLINT

Packages

Wiki

Downloads

{} Blog

Log In


Sign Up

francis94c/ci-parsedown

v0.0.2 10 2 - 5.0 0 {} 2


×

Are you sure you want to delete this package?

Users will no longer be able to intall this package if you do so.

Description

A MarkDown parsing library for Code Igniter. Originally from https://parsedown.org

README

ci-parsedown


This is a Code Igniter equivalent package of the PHP Markdown library called 'Parsedown', which can be found at https://github.com/erusev/parsedown

Installation

To install, download the Splint terminal tool at https://splint.cynobit.com/downloads/splint and run

splint install francis94c/ci-parsedown

from the root of your Code Igniter distribution.

Loading

From anywhere (Controller, Model, etc.)

$this->load->splint("francis94c/ci-parsedown", "+Parsedown", null, "parsedown");

Auto-Loading

$autoload["splint"] = array("francis94c/ci-parsedown" => array("+Parsedown", null, "parsedown"));

Usage

After loading

$output = $this->parsedown->text("_Hello World_"); // Whole conversion

$output = $this->parsedown->line("_Hello world_"); // Inline conversion

with from CynoBit