@Test public void headerMarkdownToHtml() { String markdown = "{{:header:}}*header*{{:/header:}}**foo**"; String result = markdownProcessor.headerMarkdownToHtml(markdown, "project", "branch", DocumentrConstants.HOME_PAGE_NAME + "/bar", authentication, Locale.US, CONTEXT); String expectedHtml = "<em>header</em>"; assertEquals(expectedHtml, removeTextRange(result)); }
public String headerMarkdownToHtml(String markdown, String projectName, String branchName, String path, Authentication authentication, Locale locale, String contextPath) { RootNode rootNode = parse(markdown); extractHeader(rootNode); return markdownToHtml(rootNode, projectName, branchName, path, authentication, locale, true, contextPath); }
MarkdownProcessor { public String headerMarkdownToHtml(String markdown, String projectName, String branchName, String path, Authentication authentication, Locale locale, String contextPath) { RootNode rootNode = parse(markdown); extractHeader(rootNode); return markdownToHtml(rootNode, projectName, branchName, path, authentication, locale, true, contextPath); } }
MarkdownProcessor { public String headerMarkdownToHtml(String markdown, String projectName, String branchName, String path, Authentication authentication, Locale locale, String contextPath) { RootNode rootNode = parse(markdown); extractHeader(rootNode); return markdownToHtml(rootNode, projectName, branchName, path, authentication, locale, true, contextPath); }  }
MarkdownProcessor { public String headerMarkdownToHtml(String markdown, String projectName, String branchName, String path, Authentication authentication, Locale locale, String contextPath) { RootNode rootNode = parse(markdown); extractHeader(rootNode); return markdownToHtml(rootNode, projectName, branchName, path, authentication, locale, true, contextPath); }  String markdownToHtml(String markdown, String projectName, String branchName, String path,
			Authentication authentication, Locale locale, String contextPath); String markdownToHtml(String markdown, String projectName, String branchName, String path,
			Authentication authentication, Locale locale, boolean nonCacheableMacros, String contextPath); String headerMarkdownToHtml(String markdown, String projectName, String branchName, String path,
			Authentication authentication, Locale locale, String contextPath); String processNonCacheableMacros(String html, String projectName, String branchName, String path,
			Authentication authentication, Locale locale, String contextPath); }
MarkdownProcessor { public String headerMarkdownToHtml(String markdown, String projectName, String branchName, String path, Authentication authentication, Locale locale, String contextPath) { RootNode rootNode = parse(markdown); extractHeader(rootNode); return markdownToHtml(rootNode, projectName, branchName, path, authentication, locale, true, contextPath); }  String markdownToHtml(String markdown, String projectName, String branchName, String path,
			Authentication authentication, Locale locale, String contextPath); String markdownToHtml(String markdown, String projectName, String branchName, String path,
			Authentication authentication, Locale locale, boolean nonCacheableMacros, String contextPath); String headerMarkdownToHtml(String markdown, String projectName, String branchName, String path,
			Authentication authentication, Locale locale, String contextPath); String processNonCacheableMacros(String html, String projectName, String branchName, String path,
			Authentication authentication, Locale locale, String contextPath);  }