Fix for modular markdown preview admin#1066

This commit is contained in:
Andy Miller
2018-06-20 23:37:58 +01:00
parent a07a99e2cd
commit dc9b6daaa3
2 changed files with 7 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
# v1.8.6
## mm/dd/2018
1. [](#bugfix)
* Force `html` for markdown preview [grav#2066](https://github.com/getgrav/grav/issues/2066)
# v1.8.5 # v1.8.5
## 06/20/2018 ## 06/20/2018

View File

@@ -1863,6 +1863,7 @@ class AdminController extends AdminBaseController
$this->preparePage($page, true); $this->preparePage($page, true);
$page->header(); $page->header();
$page->templateFormat('html');
// Add theme template paths to Twig loader // Add theme template paths to Twig loader
$template_paths = $this->grav['locator']->findResources('theme://templates'); $template_paths = $this->grav['locator']->findResources('theme://templates');