PHPackages                             paveld/markdown-wiki - 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. paveld/markdown-wiki

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

paveld/markdown-wiki
====================

An extension of cebe/markdown library for parsing markdown to wiki text

v0.3.1(4y ago)047[1 issues](https://github.com/PavelD/markdown-wiki/issues)1MITPHPPHP &gt;=5.4.0

Since Jan 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/PavelD/markdown-wiki)[ Packagist](https://packagist.org/packages/paveld/markdown-wiki)[ Docs](https://github.com/PavelD/markdown-wiki#readme)[ RSS](/packages/paveld-markdown-wiki/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (1)

MarkdownWiki parser
===================

[](#markdownwiki-parser)

About
-----

[](#about)

Extension of the [Cebe](https://github.com/cebe)'s [Markdown](https://github.com/cebe/markdown) library for parsing Mrkdown into WikiText syntax.

It's used as backend library for [MediaWiki](https://www.mediawiki.org) [MarkdownWiki](https://github.com/PavelD/mw-markdown-wiki) parser.

Features
--------

[](#features)

The parser render links and tables in wiki format.

### Supported elements

[](#supported-elements)

#### Inline elemets

[](#inline-elemets)

- bold
- italc
- code highlit
- links
- images

#### Block elements

[](#block-elements)

- blockquote
- headlines
- horizontal ruler
- ordered and unordered lists
- paragraphs
- preformatted text
- tables

### Extra structures

[](#extra-structures)

#### Templates

[](#templates)

Example:

```
---
template: temaplate name
myparam1: content of my param1
myparam2: content of my param2
---

```

first 2 lines are mandatory. Other lines are optional. Code check if `:` is present.

End of parsing is on the end of the template or on first empty line.

#### Magic words

[](#magic-words)

Double underscored [behavior switches](https://www.mediawiki.org/wiki/Help:Magic_words#Behavior_switches) for MediaWiki parser has the same format as markdown bold text. To avoid issues with that words new format is introduced.

`{{__NOTOC__}}` instread of simple `__NOTOC__`. The markdown-wiki parser is removing curly brackets and magic word is applyed during wiki parsing.

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

[](#installation)

The installation is following the reccomandation of the original [Cebe](https://github.com/cebe)'s [Markdown](https://github.com/cebe/markdown) library.

Installation is recommended to be done via [composer](https://getcomposer.org/)) by running:

```
composer require paveld/markdown-wiki "*"

```

and then

```
composer update paveld/markdown-wiki

```

Configuration
-------------

[](#configuration)

If you don't need to parse some of the elements it's possible to remove parsing by following directive.

```
$m = new MarkdownWiki();\
$m->disableParsingRule('headline');
$wikTextb = $m->parse($MarkdownText);
```

### List of possible paramters for the `disableParsingRule()` method:

[](#list-of-possible-paramters-for-the-disableparsingrule-method)

Some elements are idetified by by several rules.

#### Block elements

[](#block-elements-1)

- *Code block* by `code` and `fencedcode`
- *Headline* by `headline`
- *Horizontal ruler* by `ahr` and `hr`
- *HTML elements* by `html`
- *Markdown table* by `table`
- *Ordered list* by `ol`
- *Quote block* by `quote`
- *Template* by `aaatemplate` and `template`
- *Unordered list* by `bul` and `ul`

#### Inline elements

[](#inline-elements)

- *Escape* by `parseEscape`
- *Greater-than sign* by `parseGt`
- *HTML entities* by `parseEntity`
- *Image* by `parseImage`
- *Inline code* by `parseInlineCode`
- *Links* by `parseLink`
- *Magic word* by `parseMagicWord`
- *Special attributes* by `parseSpecialAttributes`
- *Strong and intalic* by `parseEmphStrong`

License
-------

[](#license)

MIT

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~3 days

Total

4

Last Release

1610d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.4.0

v0.2.0PHP &gt;=7.4.0

### Community

Maintainers

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

---

Top Contributors

[![PavelD](https://avatars.githubusercontent.com/u/447416?v=4)](https://github.com/PavelD "PavelD (41 commits)")

---

Tags

markdownwiki

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/paveld-markdown-wiki/health.svg)

```
[![Health](https://phpackages.com/badges/paveld-markdown-wiki/health.svg)](https://phpackages.com/packages/paveld-markdown-wiki)
```

###  Alternatives

[cebe/markdown

A super fast, highly extensible markdown parser for PHP

1.0k33.5M146](/packages/cebe-markdown)[texy/texy

Texy converts plain text in easy to read Texy syntax into structurally valid (X)HTML. It supports adding of images, links, nested lists, tables and has full support for CSS. Texy supports hyphenation of long words (which reflects language rules), clickable emails and URL (emails are obfuscated against spambots), national typographic single and double quotation marks, ellipses, em dashes, dimension sign, nonbreakable spaces (e.g. in phone numbers), acronyms, arrows and many others. Texy code can optionally contain HTML tags.

159855.5k15](/packages/texy-texy)[cebe/markdown-latex

A super fast, highly extensible markdown parser for PHP, that converts markdown files into latex

50775.4k8](/packages/cebe-markdown-latex)[dniccum/nova-documentation

A Laravel Nova tool that allows you to add markdown-based documentation to your administrator's dashboard.

37118.9k](/packages/dniccum-nova-documentation)[softark/creole

Creole Wiki parser for PHP extended from cebe/markdown

1546.3k2](/packages/softark-creole)

PHPackages © 2026

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