Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Parse markdown for JS/JSON templates as well

  • Loading branch information...
commit d9118369e9e69f5eeea46fe40be53145a95c9f39 1 parent 8e8ad2b
@kolber authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/page-data.inc.php
View
2  app/page-data.inc.php
@@ -217,7 +217,7 @@ static function create_textfile_vars($page, $content = false) {
if (!$current_page_template_file) {
$current_page_template_file = $page->template_file;
}
- $markdown_compatible = preg_match('/\.(xml|html?|rss|rdf|atom)$/', $current_page_template_file);
+ $markdown_compatible = preg_match('/\.(xml|html?|rss|rdf|atom|js|json)$/', $current_page_template_file);
$relative_path = preg_replace('/^\.\//', Helpers::relative_root_path(), $page->file_path);
foreach ($vars as $key => $value) {
Please sign in to comment.
Something went wrong with that request. Please try again.