Hey! Keep up to date with the project through its beta and public launch by following @getsparks.

 
0
0
0
1,594 Installs

Basic Information: markdown-extra

A markdown extra helper to parse markdown extra

Contributor : tomcode
Email : Log in to view
Author Website : http://thomastraub.com/
Spark Website : https://github.com/tomcode/ci-spark-markdown-extra
Repository Type : git
Number of Installs : 1,594

Get the Latest

  • 0.0.0 Pushed January 30th, 2012
    php tools/spark install -v0.0.0 markdown-extra Or download this version manually: Get markdown-extra-0.0.0.zip

How-To

Markdown Extra

This CodeIgniter package/spark transforms markdown to HTML.

It uses Michel Fortin's extra branch of the php-markdown library, version 1.2.5, see also Notes.

Kenny Katzgrau's markdown spark served me as blueprint.

Current version number 0.0.1

Usage

The package/spark consists of one helper function, parse_markdown_extra(), which accepts a block of markdown (extra), and returns HTML. You can install it either as package or as spark.

As spark

Load the spark and call the parse_markdown_extra() function.

# x.x.x is the version number
$this->load->spark('markdown/x.x.x');
$html = parse_markdown_extra($some_markdown_string);

As package

Add the package path, load the helper and call the parse_markdown_extra() function.

$this->load->add_package_path('path/to/the/markdown/package');
$this->load->helper('markdown-extra');
$html = parse_markdown_extra($some_markdown_string);

Support

Send any questions to Thomas Traub.

Source

The original package code: ci-pkg-markdown-extra
The deployment as CodeIgniter Spark: ci-spark-markdown-extra

Notes

January 30, 2012

  • I include Michel Fortin's library as submodule. Michel used to tag every version (prefix x for the extra versions), but the for current 1.2.5 release there is no tag set, the HEAD of the extra branch matches the download version.
  • getsparks.org does not (yet) support submodules, therefore the separation into two repos.

Older Versions

  • There are no older versions.

Comments

blog comments powered by Disqus