From 89141b5edb87c83d39bc94939eac32ddfbdeee23 Mon Sep 17 00:00:00 2001 From: Shadi Isber Date: Tue, 22 Apr 2014 13:19:03 -0700 Subject: [PATCH] Switching to parsedown and composer edits --- composer.json | 3 ++- composer.lock | 64 ++++++++++++++++++++++++++++++++++++++++++++++ libs/functions.php | 7 +++-- 3 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 composer.lock diff --git a/composer.json b/composer.json index 47e110e..1c38095 100644 --- a/composer.json +++ b/composer.json @@ -12,6 +12,7 @@ } ], "require": { - "php": ">=5.3" + "php": ">=5.3", + "erusev/parsedown": "dev-master" } } diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..e383ddd --- /dev/null +++ b/composer.lock @@ -0,0 +1,64 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" + ], + "hash": "316e27cc72bce34db33fdde3d1b1c414", + "packages": [ + { + "name": "erusev/parsedown", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/erusev/parsedown.git", + "reference": "60819541858f9da6fcb77e8bd09693635553d3ef" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/erusev/parsedown/zipball/60819541858f9da6fcb77e8bd09693635553d3ef", + "reference": "60819541858f9da6fcb77e8bd09693635553d3ef", + "shasum": "" + }, + "type": "library", + "autoload": { + "psr-0": { + "Parsedown": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Emanuil Rusev", + "email": "hello@erusev.com", + "homepage": "http://erusev.com" + } + ], + "description": "Parser for Markdown.", + "homepage": "http://parsedown.org", + "keywords": [ + "markdown", + "parser" + ], + "time": "2014-04-17 21:19:22" + } + ], + "packages-dev": [ + + ], + "aliases": [ + + ], + "minimum-stability": "stable", + "stability-flags": { + "erusev/parsedown": 20 + }, + "platform": { + "php": ">=5.3" + }, + "platform-dev": [ + + ] +} diff --git a/libs/functions.php b/libs/functions.php index c65fafc..bdb7eac 100644 --- a/libs/functions.php +++ b/libs/functions.php @@ -1,6 +1,6 @@ text($page['markdown']); $page['title'] = clean_url($file, 'Title'); } $relative_base = ($mode === 'Static') ? relative_path("", $file) : "http://" . $base_path . '/';