/* -------------------------- Public Features ------------------------------ */
public void syncMacros(WikiDocument doc) {
if (doc.getHeader() != null) {
MacroWikiTextRenderer renderer = MacroWikiTextRenderer.renderMacros(doc.getHeader());
doc.setHeaderMacros(renderer.getMacros());
}
if (doc.getContent() != null) {
MacroWikiTextRenderer renderer = MacroWikiTextRenderer.renderMacros(doc.getContent());
doc.setContentMacros(renderer.getMacros());
}
if (doc.getFooter() != null) {
MacroWikiTextRenderer renderer = MacroWikiTextRenderer.renderMacros(doc.getFooter());
doc.setFooterMacros(renderer.getMacros());
}
}