Markdown module provides:
- A markdown document viewer
- Markdown document & image business objects
MDDocument object allows to configure and edit a markdown document (it calculates its URL depending on the published flag:
a published document is available in public zone whereas a non published document is only available on the authenticated zone).
MDImage object allows to store images that can be displayed in documents (see bellow).
The markdown viewer renders a markdown document as an HTML page.
A markdown document can be:
- A markdown document object record
- A disposition resource of type Markdown
The markdown viewer URL scheme is:
<base application URL>[/jsp]/ext/MDViewer?[doc=<markdown document code>|res=<markdown resource code>]
Several tags are subsituted on the fly:
[URL]: substitutes as application base URL
[ROOT]: substitutes as application root path
[IMAGE:<markdown image code>]: substitutes as the base 64 data URL of the image
[MODEL:<business model code>]: substitutes as the base 64 data URL of the business model image
[DOC:<markdown document code>]: substitutes as the URL of another markdown docume t (typical usage is to display a link to another document)
[MODULEDOC:<module name>[:<title level>]substitutes as the designated module standard documentation (default title level is
[OBJECTDOC:<object name>[:<title level>]substitutes as the designated object standard documentation (default title level is
[RESOURCE:<disposition resource code>]: substitutes to:
- the base 64 data URL of the resource for image resources
- the content of the resource for markdown resources (note that in this case the tags included in this content are also processed)