Download the PHP package raffaelj/cockpit-bettermarkdown without Composer
On this page you can find all versions of the php package raffaelj/cockpit-bettermarkdown. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cockpit-bettermarkdown
BetterMarkdown addon for Cockpit CMS v1
This addon is not compatible with Cockpit CMS v2.
See also Cockpit CMS v1 docs, Cockpit CMS v1 repo and Cockpit CMS v2 docs, Cockpit CMS v2 repo.
Cache, task lists and ToC support for markdown conversion with Cockpit CMS
This addon replaces the current Parsedown and ParsedownExtra libraries with later versions and it adds two Parsedown extensions: ParsedownToC and ParsedownTasks.
It also uses a cache of already converted content to speed things up. Cached files are in the tmp
folder.
Installation
Copy this repository into /addons
and name it BetterMarkdown
or use the cli.
via git
via cp cli
via composer
Make sure, that the path to cockpit addons is defined in your projects' composer.json
file.
Config
path/to/cockpit/config/config.php
:
Usage
Markdown:
Conversion:
html output:
Cache
After converting some markdown, two files are added to the tmp folder.
{$hash}.md.html
{$hash}.md.toc.json
License, credits and third party resources
License: MIT, author: Raffael Jesche, www.rlj.me
Used libraries:
- "erusev/parsedown-extra": "0.8.1", MIT
- "erusev/parsedown": "^1.7.4", MIT
- "benjaminhoegh/parsedown-toc": "^1.4.3", MIT
- "raffaelj/parsedown-tasks": "^0.1.0", MIT
All versions of cockpit-bettermarkdown with dependencies
erusev/parsedown-extra Version ^0.8.1
erusev/parsedown Version ^1.7.4
benjaminhoegh/parsedown-toc Version ^1.4.3
raffaelj/parsedown-tasks Version ^0.1.0