Skip to content
This repository
Browse code

Parse markdown for JS/JSON templates as well

  • Loading branch information...
commit d9118369e9e69f5eeea46fe40be53145a95c9f39 1 parent 8e8ad2b
Anthony Kolber authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  app/page-data.inc.php
2  app/page-data.inc.php
@@ -217,7 +217,7 @@ static function create_textfile_vars($page, $content = false) {
217 217 if (!$current_page_template_file) {
218 218 $current_page_template_file = $page->template_file;
219 219 }
220   - $markdown_compatible = preg_match('/\.(xml|html?|rss|rdf|atom)$/', $current_page_template_file);
  220 + $markdown_compatible = preg_match('/\.(xml|html?|rss|rdf|atom|js|json)$/', $current_page_template_file);
221 221 $relative_path = preg_replace('/^\.\//', Helpers::relative_root_path(), $page->file_path);
222 222
223 223 foreach ($vars as $key => $value) {

0 comments on commit d911836

Please sign in to comment.
Something went wrong with that request. Please try again.