PHPackages                             sideshot/markdown2-tailwindui-php - 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. sideshot/markdown2-tailwindui-php

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

sideshot/markdown2-tailwindui-php
=================================

An opinionated Markdown parser that outputs beautiful Tailwind UI HTML, with custom tags and embed support.

1.0.2(10mo ago)15MITPHP

Since Jul 8Pushed 10mo agoCompare

[ Source](https://github.com/sideshot/markdown2-tailwindui-php)[ Packagist](https://packagist.org/packages/sideshot/markdown2-tailwindui-php)[ Docs](https://github.com/sideshot/markdown2-tailwindui-php)[ RSS](/packages/sideshot-markdown2-tailwindui-php/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (4)Used By (0)

Markdown2TailwindUI PHP
=======================

[](#markdown2tailwindui-php)

**Markdown2TailwindUI PHP** is an opinionated Markdown parser that transforms plain Markdown into beautiful, responsive HTML layouts styled with Tailwind UI utility classes. It is designed for projects that want rich, styled content without custom CSS or manual HTML tweaks.

Features
--------

[](#features)

- **Tailwind-Ready Output:** All HTML is styled with Tailwind utility classes for instant, modern design.
- **Responsive Tables:** Markdown tables are converted to responsive, styled layouts.
- **Smart Typography:** Smart punctuation for better readability.
- **Embeds:** Native support for YouTube, Twitter, GitHub, and more.
- **Custom Tags:** Use `[MPN:12345]` to auto-link part numbers (customizable for your domain).
- **Table of Contents:** Automatic TOC generation for long documents.
- **Heading Level Shifting:** Optionally shift all headings to fit your page hierarchy.
- **Security:** Escapes user input in custom tags to prevent XSS.

Limitations
-----------

[](#limitations)

- This package is currently tailored for a specific project and may lack flexibility for all use cases.
- Only a few custom tags are supported out of the box.
- Configuration options are limited but will expand in future releases.

Roadmap
-------

[](#roadmap)

- More flexible custom tag/plugin system
- Additional configuration options
- Improved accessibility and ARIA support
- More embed providers

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

[](#installation)

```
composer require sideshot/markdown2-tailwindui-php
```

Usage
-----

[](#usage)

```
use Sideshot\Markdown2TailwindUI;

$parser = new Markdown2TailwindUI(['base_header_level' => 3]);
$result = $parser->to_html($markdownString);
echo $result['toc'];   // Table of Contents HTML
echo $result['html'];  // Main HTML content
```

License
-------

[](#license)

MIT

Author
------

[](#author)

Richard ([@sideshot](https://github.com/sideshot))

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance54

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Total

3

Last Release

316d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e38bfb25cc467a2acf724323643b5b4a75cf742b7a7892e6a1f76e98fd80754f?d=identicon)[sideshot](/maintainers/sideshot)

---

Top Contributors

[![maincp](https://avatars.githubusercontent.com/u/162086000?v=4)](https://github.com/maincp "maincp (2 commits)")[![sideshot](https://avatars.githubusercontent.com/u/2152810?v=4)](https://github.com/sideshot "sideshot (1 commits)")

---

Tags

parserhtmlmarkdowncommonmarktailwindembedtailwindcsstailwinduiopinionatedcustom tags

### Embed Badge

![Health badge](/badges/sideshot-markdown2-tailwindui-php/health.svg)

```
[![Health](https://phpackages.com/badges/sideshot-markdown2-tailwindui-php/health.svg)](https://phpackages.com/packages/sideshot-markdown2-tailwindui-php)
```

###  Alternatives

[league/commonmark

Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)

3.0k437.5M1.0k](/packages/league-commonmark)[gotenberg/gotenberg-php

A PHP client for interacting with Gotenberg, a developer-friendly API for converting numerous document formats into PDF files, and more!

3856.2M31](/packages/gotenberg-gotenberg-php)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[jbroadway/slimdown

A simple regex-based Markdown parser.

348.0k](/packages/jbroadway-slimdown)[ows/commonmark-sup-sub-extensions

A sup/sub extension for CommonMark PHP implementation

107.7k](/packages/ows-commonmark-sup-sub-extensions)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
