PHPackages                             raffaelj/cockpit-bettermarkdown - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. raffaelj/cockpit-bettermarkdown

ActiveCockpit-module[Parsing &amp; Serialization](/categories/parsing)

raffaelj/cockpit-bettermarkdown
===============================

Cache, task lists and ToC support for markdown conversion with Cockpit CMS v1

0.2.0(3y ago)012[1 issues](https://github.com/raffaelj/cockpit_BetterMarkdown/issues)MITPHP

Since Oct 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/raffaelj/cockpit_BetterMarkdown)[ Packagist](https://packagist.org/packages/raffaelj/cockpit-bettermarkdown)[ Docs](https://github.com/raffaelj/cockpit_BetterMarkdown)[ RSS](/packages/raffaelj-cockpit-bettermarkdown/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (5)Versions (4)Used By (0)

BetterMarkdown addon for Cockpit CMS v1
=======================================

[](#bettermarkdown-addon-for-cockpit-cms-v1)

**This addon is not compatible with Cockpit CMS v2.**

See also [Cockpit CMS v1 docs](https://v1.getcockpit.com/documentation), [Cockpit CMS v1 repo](https://github.com/agentejo/cockpit) and [Cockpit CMS v2 docs](https://getcockpit.com/documentation/), [Cockpit CMS v2 repo](https://github.com/Cockpit-HQ/Cockpit).

---

Cache, task lists and ToC support for markdown conversion with [Cockpit CMS](https://github.com/agentejo/cockpit)

This addon replaces the current [Parsedown](https://github.com/erusev/parsedown) and [ParsedownExtra](https://github.com/erusev/parsedown-extra) libraries with later versions and it adds two Parsedown extensions: [ParsedownToC](https://github.com/BenjaminHoegh/parsedownToc) and [ParsedownTasks](https://codeberg.org/raffaelj/parsedown-tasks).

It also uses a cache of already converted content to speed things up. Cached files are in the `tmp` folder.

Installation
------------

[](#installation)

Copy this repository into `/addons` and name it `BetterMarkdown` or use the cli.

### via git

[](#via-git)

```
cd path/to/cockpit
git clone https://github.com/raffaelj/cockpit_BetterMarkdown.git addons/BetterMarkdown
```

### via cp cli

[](#via-cp-cli)

```
cd path/to/cockpit
./cp install/addon --name BetterMarkdown --url https://github.com/raffaelj/cockpit_BetterMarkdown/archive/master.zip
```

### via composer

[](#via-composer)

Make sure, that the path to cockpit addons is defined in your projects' `composer.json` file.

```
{
    "name": "my/cockpit-project",
    "extra": {
        "installer-paths": {
            "addons/{$name}": ["type:cockpit-module"]
        }
    }
}
```

```
cd path/to/cockpit-root
composer create-project --ignore-platform-reqs aheinze/cockpit .
composer config extra.installer-paths.addons/{\$name} "type:cockpit-module"

composer require --ignore-platform-reqs raffaelj/cockpit-bettermarkdown
```

Config
------

[](#config)

`path/to/cockpit/config/config.php`:

```
