Download the PHP package mindtwo/laravel-markdown without Composer
On this page you can find all versions of the php package mindtwo/laravel-markdown. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mindtwo/laravel-markdown
More information about mindtwo/laravel-markdown
Files in mindtwo/laravel-markdown
Package laravel-markdown
Short Description This is my package laravel-markdown
License MIT
Homepage https://github.com/mindtwo/laravel-markdown
Informations about the package laravel-markdown
Laravel Markdown
laravel-markdown
is a simple, lightweight package for cleaning up and adjusting markdown content in Laravel applications. It provides functionality to remove bold formatting from markdown headlines and dynamically adjust the heading levels in markdown content based on a configurable maximum level. This is especially useful when rendering user-generated content and ensuring consistency in markdown formatting across your application.
Features
- Remove Bold from Headlines: Automatically strip bold formatting (e.g.,
**Heading**
) from markdown headings. - Adjust Headline Levels: Dynamically adjust markdown heading levels (e.g.,
#
to##
,##
to###
, etc.) based on a configurable maximum level.
Installation
You can install the package via composer:
Usage
To clean up your markdown content, you can use the CleanupMarkdown
class, which handles both removing bold formatting from headlines and adjusting headline levels.
Example
In this example, the maximum headline level is set to 2
, so all #
headings are adjusted to ##
, and bold formatting is removed from both headings.
Customization
You can specify the maximum headline level when calling the execute
method. This determines how the headline levels will be adjusted:
Testing
To run the package's tests, use:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Contributions are welcome! Please see CONTRIBUTING for details on how to contribute.
Security Vulnerabilities
If you discover any security-related issues, please review our security policy for how to report them.
Credits
- mindtwo GmbH
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-markdown with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0