Skip to content

Commit

Permalink
modified line 206 in page.data.inc.php to use ---- for fenced markdow…
Browse files Browse the repository at this point in the history
…n, not +++
  • Loading branch information
Ole Sletten committed Feb 19, 2015
1 parent bbe80c0 commit e292bed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/page-data.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ static function create_asset_collections($page) {
# page.numbered_images
$page->numbered_images = Helpers::list_files($page->file_path, '/^\d+[^\/]*(?<!thumb|_lge|_sml)\.(gif|jpg|png|jpeg)$/i', false);
# page.video
$page->video = Helpers::list_files($page->file_path, '/\.(mov|mp4|m4v)$/i', false);
$page->video = Helpers::list_files($page->file_path, '/\.(mov|mp4|m4v|webm|ogv)$/i', false);

# page.swf, page.html, page.doc, page.pdf, page.mp3, etc.
# create a variable for each file type included within the page's folder (excluding .yml files)
Expand All @@ -203,7 +203,8 @@ static function get_shared_data() {
}

static function preparse_text($text) {
$content = preg_replace_callback('/:\s*(\n)?\+{3,}([\S\s]*?)\+{3,}/', create_function('$match',
$content = preg_replace_callback('/:\s*(\n)?\-{4,}([\S\s]*?)\-{4,}/', create_function('$match',
# $content = preg_replace_callback('/:\s*(\n)?\+{3,}([\S\s]*?)\+{3,}/', create_function('$match',
'return ": |\n ".preg_replace("/\n/", "\n ", $match[2]);'
), $text);
return $content;
Expand Down

0 comments on commit e292bed

Please sign in to comment.