Repository: sling-site Updated Branches: refs/heads/master f67993ddc -> 55a9a8775
Hide syntax markers which are not implemented so far Project: http://git-wip-us.apache.org/repos/asf/sling-site/repo Commit: http://git-wip-us.apache.org/repos/asf/sling-site/commit/55a9a877 Tree: http://git-wip-us.apache.org/repos/asf/sling-site/tree/55a9a877 Diff: http://git-wip-us.apache.org/repos/asf/sling-site/diff/55a9a877 Branch: refs/heads/master Commit: 55a9a8775dcffacdc0f5ce1f322e492be44a0892 Parents: f67993d Author: Bertrand Delacretaz <[email protected]> Authored: Tue Jul 11 12:25:58 2017 +0200 Committer: Bertrand Delacretaz <[email protected]> Committed: Tue Jul 11 12:25:58 2017 +0200 ---------------------------------------------------------------------- src/main/jbake/templates/page.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sling-site/blob/55a9a877/src/main/jbake/templates/page.tpl ---------------------------------------------------------------------- diff --git a/src/main/jbake/templates/page.tpl b/src/main/jbake/templates/page.tpl index 726e29f..84db821 100644 --- a/src/main/jbake/templates/page.tpl +++ b/src/main/jbake/templates/page.tpl @@ -1,7 +1,11 @@ def processContent(str) { // Temporarily disable the TOC macro, replace with a comment def replacement ='<!-- TODO reactivate TOC once JBake moves to flexmark-java -->\n' - return str.replaceAll('\\[TOC\\]', replacement) + str = str.replaceAll('\\[TOC\\]', replacement) + + // Temporarily disable the syntax markers (of which there are two flavors, for some reason) + str = str.replaceAll('(::|#\\!)(java|jsp|xml|sh|javascript) *\\n', '<!-- TODO syntax marker ($1$2) disabled -->') + return str } // Is parent an ancestor of child?
