This package aims to convert markdown generated content to tailwind compatible html.
You can install the package via composer:
composer require marvinosswald/tailmark
You need to include this line in your content array in your tailwind.config.js.
"./vendor/marvinosswald/tailmark/src/Renderer/**/*.php"
You can publish the config file with:
php artisan vendor:publish --tag="tailmark-config"
This is the contents of the published config file:
return [
'h' => [
1 => "text-extrabold text-3xl"
...
]
];
Optionally, you can publish the views using
php artisan vendor:publish --tag="tailmark-views"
<x-tailmark-render :markdown="'# Headline'"></x-tailmark-render>
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.