Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Markdown for Laravel
Branch: master

Merge pull request #5 from Haensel/master

Fixing wrong namespace used when creating inline image tags
latest commit 6f9ebdc728
@sparksp authored
Failed to load latest commit information.
controllers Now called "Sparkdown", updated for Laravel 3
apigen.neon Now called "Sparkdown", updated for Laravel 3
bundle.php Now called "Sparkdown", updated for Laravel 3
parser.php Fixing wrong namespace issue Now called "Sparkdown", updated for Laravel 3
start.php Now called "Sparkdown", updated for Laravel 3
view.php Now called "Sparkdown", updated for Laravel 3

Sparkdown Bundle

A simple bundle to provide Markdown and Markdown Extra functions.

Links and image URLs are passed through Laravel\URL::to and Larave\URL::to_asset.


Install via the Artisan CLI:

php artisan bundle:install sparkdown

Or download the zip and unpack into your bundles directory.

Bundle Registration

Just add 'sparkdown' to your application/bundles.php file.


Parse some text

Start the bundle and use Sparkdown\Markdown

echo Sparkdown\Markdown($text);

View a markdown file

You can create Sparkdown\View objects, like Laravel\View objects

Router::register('GET /about', function()
    // View of application/views/
    return Sparkdown\View::make('about');

    // Also supports bundles and paths...
    // View of bundles/bundle/views/path/
    return Sparkdown\View::make('bundle::path.file');

And you can route to the handy controller (needs 1 parameter).

Route::get('(about)', 'sparkdown::page@show');
Something went wrong with that request. Please try again.