def processBody()

in src/main/jbake/templates/includes/U.groovy [25:40]


    def processBody(content, config) {
    	def str = content.body

    	// Temporarily disable the TOC macro, replace with a comment
    	def replacement ='<!-- TODO reactivate TOC once JBake moves to flexmark-java -->\n'
    	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|html) *\\n', '<!-- TODO syntax marker ($1$2) disabled -->')

    	// Optionally expand variables
    	if("true".equals(content.expandVariables)) {
    		str = expandVariables(str, config)
    	}
    	return str
    }