Confluence to HTML

Nowadays it is already a default standard approach to write the application-related documentation in some wiki markup language. The use of such a simplified language gives the document writer, in this case a developer, the freedom to focus on the dev content instead of formatting.

We choose to support Confluence format in scripting services.

1
2
3
4
5
6
7
8
9
10
	/* globals $ */
	/* eslint-env node, dirigible */
	
	$.getResponse().getWriter().println($.get("wiki").toHtml("h1. Hello World!\n Confluence Rulez!"));
			
	$.getResponse().setContentType("text/html");
	$.getResponse().getWriter().flush();
	$.getResponse().getWriter().close();

wiki.toHtml([some confluence text here]); does the trick

Edit