In principle, it’s no more than doing this (installing with composer)
plugins/test/index.php
<?php
@include_once __DIR__ . '/vendor/autoload.php';
use Michelf\Markdown;
Kirby::plugin('texnixe/test', [
'components' => [
'markdown' => function (Kirby $kirby, string $text = null, array $options = [], bool $inline = false) {
return Markdown::defaultTransform($text);
}
]
]);