Markus Michalski FAQ

Markdown Support: Installation

Installing Markdown Support: plugin folder in include/plugins/markdown-support, dependencies, activation in the admin panel, update, deactivation and removal.

Deutsche Version

Back to overview

Markdown Support: Installation

Requirements

Install the plugin files

Option 1: release ZIP (recommended)

  1. Download the release ZIP from the GitHub releases and extract it.
  2. Copy the markdown-support folder to include/plugins/ in your osTicket directory.

The ZIP contains the runtime dependency Parsedown in the vendor/ folder.

Option 2: Git clone with Composer

cd /path/to/osticket/include/plugins
git clone https://github.com/markus-michalski/osticket-markdown-support.git markdown-support
cd markdown-support
composer install --no-dev

The plugin loads vendor/autoload.php on startup. In a Git checkout this folder does not exist until you run composer install, and the plugin cannot start.

The target path is include/plugins/markdown-support/ with plugin.php, class.MarkdownPlugin.php and config.php directly inside.

Activate the plugin

  1. In the osTicket Admin Panel, go to Manage > Plugins.
  2. Find Markdown Support in the list and activate it.

On activation the following happens:

The settings are described on the Configuration page.

A browser tab that is already open only gets the editor after the page is reloaded.

Update

Replace the folder include/plugins/markdown-support/ with the new version. On the next start the plugin compares the stored installed_version with the version in plugin.php. If it is older or empty, the plugin updates the .htaccess rules, copies the preview endpoint again and stores the new version.

Updating osTicket

The core patch in include/class.thread.php belongs to osTicket and is lost when an osTicket update replaces the file. The plugin behaves as follows:

Therefore deactivate the plugin before the osTicket update. This restores the original file and deletes the backup. Then apply the osTicket update and activate the plugin again. It then creates a fresh backup of the new file and patches it.

Deactivate and remove

The plugin does not delete any database data. Existing entries keep the format markdown in the format column and their Markdown text. How osTicket displays such entries without the plugin is decided by the osTicket core.