PHPackages                             linkrobins/markdown-widget - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. linkrobins/markdown-widget

ActiveFlarum-extension[Utility &amp; Helpers](/categories/utility)

linkrobins/markdown-widget
==========================

Markdown widget for fof/forum-widgets-core

v1.1.1(1w ago)032↑87.5%MITJavaScriptPHP ^8.3

Since May 10Pushed 1w agoCompare

[ Source](https://github.com/linkrobins/markdown-widget)[ Packagist](https://packagist.org/packages/linkrobins/markdown-widget)[ RSS](/packages/linkrobins-markdown-widget/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Link Robins Markdown Widget
===========================

[](#link-robins-markdown-widget)

A simple Markdown widget for [Flarum 2.0](https://flarum.org), built as a widget for [`fof/forum-widgets-core`](https://packagist.org/packages/fof/forum-widgets-core). Same skeleton as [`linkrobins/html-widget`](https://packagist.org/packages/linkrobins/html-widget), with a Markdown renderer in front of the body.

What it does
------------

[](#what-it-does)

Adds one configurable Markdown widget to the FoF Forum Widgets placement editor. Admin sets:

- **Title** — optional, shown above the body
- **Icon** — FontAwesome class (e.g. `fab fa-markdown`)
- **Markdown body** — standard GitHub-flavored Markdown, rendered to HTML on the client

Drag and place it from the FoF Forum Widgets admin page like any other widget.

Requirements
------------

[](#requirements)

- Flarum **2.0** or later
- [`fof/forum-widgets-core`](https://packagist.org/packages/fof/forum-widgets-core) installed and enabled

The Markdown renderer ([marked](https://marked.js.org/)) and the HTML sanitiser ([DOMPurify](https://github.com/cure53/DOMPurify)) are bundled into the extension — nothing is fetched from a CDN at runtime.

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

[](#installation)

```
composer require linkrobins/markdown-widget
php flarum cache:clear

```

In Flarum admin → **Extensions**, find **Link Robins Markdown** under the **Forum Widgets** category and enable it. Configure title/icon/body, then go to FoF Forum Widgets settings and place it where you want it.

Markdown features
-----------------

[](#markdown-features)

Supports the full Markdown syntax that marked.js handles, including:

- Headings (`# H1`, `## H2`, ...)
- Bold (`**bold**`) and italic (`*italic*`)
- Lists (ordered and unordered)
- Links and images
- Code spans and fenced code blocks
- Blockquotes
- Tables (GFM)
- Horizontal rules
- Inline HTML (sanitised before display)

The widget styles headings, lists, code, blockquotes, and tables to fit cleanly in any placement.

Security note
-------------

[](#security-note)

The rendered HTML is passed through [DOMPurify](https://github.com/cure53/DOMPurify) before display, so `` tags, event-handler attributes, and other unsafe markup in the Markdown body are stripped. The body is still admin-only — treat it like any other admin-controlled content.

License
-------

[](#license)

MIT

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance98

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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 ~10 days

Total

3

Last Release

10d ago

PHP version history (2 changes)v1.0.0PHP ^8.2

v1.1.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ba4ada28098b217152b5ec67bff43409a54b808d7d038119af6f56715a1c3f9?d=identicon)[linkrobins](/maintainers/linkrobins)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/linkrobins-markdown-widget/health.svg)

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

###  Alternatives

[flarum-lang/russian

Russian language pack for Flarum.

12127.5k](/packages/flarum-lang-russian)[fof/byobu

Well integrated, advanced private discussions.

61112.4k10](/packages/fof-byobu)[flarum/tags

Organize discussions into a hierarchy of tags and categories.

38744.9k133](/packages/flarum-tags)[fof/gamification

Upvotes and downvotes for your Flarum community

4162.0k6](/packages/fof-gamification)[fof/polls

 A Flarum extension that adds polls to your discussions

25130.2k9](/packages/fof-polls)[michaelbelgium/flarum-discussion-views

Add views to flarum discussions

3155.4k6](/packages/michaelbelgium-flarum-discussion-views)

PHPackages © 2026

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