diff --git a/LICENSE b/LICENSE old mode 100755 new mode 100644 diff --git a/README.md b/README.md old mode 100755 new mode 100644 diff --git a/_config.php b/_config.php old mode 100755 new mode 100644 diff --git a/code/tasks/RebuildLuceneDocsIndex.php b/code/tasks/RebuildLuceneDocsIndex.php index 6a84f57..1a25544 100755 --- a/code/tasks/RebuildLuceneDocsIndex.php +++ b/code/tasks/RebuildLuceneDocsIndex.php @@ -21,7 +21,6 @@ class RebuildLuceneDocsIndex extends BuildTask { } function rebuildIndexes($quiet = false) { - require_once(DOCSVIEWER_PATH .'/thirdparty/markdown/markdown.php'); require_once 'Zend/Search/Lucene.php'; ini_set("memory_limit", -1); @@ -76,7 +75,10 @@ class RebuildLuceneDocsIndex extends BuildTask { if(!is_dir($page->getPath())) { $doc = new Zend_Search_Lucene_Document(); $content = $page->getMarkdown(); - if($content) $content = Markdown($content); + if($content) { + $md = new ParsedownExtra(); + $content = $md->text($content); + } $entity = ($entity = $page->getEntity()) ? $entity->getTitle() : ""; @@ -121,4 +123,4 @@ class RebuildLuceneDocusIndex_Hourly extends HourlyTask { $reindex->rebuildIndexes(true); } -} \ No newline at end of file +} diff --git a/composer.json b/composer.json index 7c3ff5d..032dae4 100644 --- a/composer.json +++ b/composer.json @@ -18,6 +18,6 @@ "erusev/parsedown-extra": "0.1.0" }, "suggest": { - "silverstripe/staticpublisher": "Allows publishing documentation as HTML" - } + "silverstripe/staticpublisher": "Allows publishing documentation as HTML" + } }