This CodeIgniter package/spark transforms markdown to HTML.
Kenny Katzgrau's markdown spark served me as blueprint.
Current version number 0.0.1
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.
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);
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);
Send any questions to Thomas Traub.
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.