View on GitHub

Molkobain I/O documentation

Documentation for all iTop extensions made by Molkobain I/O

đź‘‹ Available on Molkobain I/O

iTop extension: molkobain-markdown-viewer

Description

Easily edit fields in Markdown without any modification to your datamodel! Perfect for FAQs and many others objects đź‘Ś

Advanced features support such as headings, emphasis, lists, images, hyperlinks, highlighting, code formatting…

Description decoration

Instant preview of Markdown rendering while editing Preview while editing

Fully compatible with the enhanced portal in both visualization… Portal visualization

… and edition with instant preview Portal editing Portal preview

Online demo

You can try this extension on the online demo. There are already some FAQs with a markdown description as an example. Just click on the links below to access it:

Note: Mind to logout before switching between console & portal.

Compatibility

Compatible with iTop 2.7+

Dependencies

Note: All dependencies are included in the dist/ folder, so all you need to do is follow the installation section below.

Downloads

Stable releases can be found on the releases page or on Molkobain I/O.

Downloading it directly from the Clone or download will get you the version under development which might be unstable.

Installation

Installation procedure is the same as for any iTop extension, just follow the instruction on the iTop official documentation here.

Configuration

Out of the box this extension doesn’t change any attributes, you have to configure which attributes you want to be rendered as Markdown. To do so, take a look at the markdown_attributes parameter in the next section.

Parameters

Some configuration parameters are available from the Configuration editor of the console:

Example:

'molkobain-markdown-viewer' => array (
  'enabled' => true,
  'markdown_attributes' => array(
    'Service' => array('description'),
    'ServiceSubcategory' => array('description'),
    'FAQ' => array('summary', 'description'),
  ),
  'markdown_options' => array(
    'tables' => true,
  ),
),

Contributors

I would like to give a special thank you to the people who contributed to this:

Licensing

This extension is under AGPLv3.

Third party libs

This extension is based on the awesome Showdown library. For more information visit its website.