Confluence to HTML
Version 2.x
Develop
Nowadays it is already a standard 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();
Editwiki.toHtml([some confluence text here]); does the trick