PHPackages                             methorz/markme - 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. methorz/markme

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

methorz/markme
==============

MethorZ - Markdown Parser

1.0.0(1y ago)010proprietaryPHPPHP ^8.3

Since Nov 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MethorZ/markme)[ Packagist](https://packagist.org/packages/methorz/markme)[ Docs](https://github.com/MethorZ/markme)[ RSS](/packages/methorz-markme/feed)WikiDiscussions main Synced 1mo ago

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

MethorZ MarkMe
==============

[](#methorz-markme)

MethorZ MarkMe is a powerful and flexible Markdown parser library for PHP. It allows you to convert Markdown text into HTML with ease.

Features
--------

[](#features)

- **Markdown Parsing**: Convert Markdown text to HTML.
- **Custom Renderers**: Extend and customize the rendering of Markdown elements.
- **PHP 8.3**: Fully compatible with PHP 8.3.

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

[](#installation)

You can install the package via Composer:

```
composer require methorz/markme
```

Usage Here's a basic example of how to use the MarkMe library:

```
setRenderer(Paragraph::class, new ParagraphRenderer());

$text = new Text('This is a paragraph.');
$paragraph = new Paragraph($text);

echo $markdown->render($paragraph);
```

Custom Renderers You can create custom renderers for different Markdown elements. Here's an example of a custom renderer for a horizontal rule:

```
