LR Markdown Widget is a widget you write in Markdown: a welcome note, quick links, house rules. It's a widget for fof/forum-widgets-core, so you place it wherever widgets go.

What it does
- An optional title and icon above your content.
- Your body in Markdown, the GitHub flavor: headings, bold and italic, lists, links, images, code, quotes, tables and horizontal rules. Inline HTML works too, and it's cleaned before it's shown.
- An optional background color. The text switches to a readable color on its own. Leave it blank to follow your theme in light and dark mode.
- Edits show up on a normal reload, and unchanged content is cached instead of being fetched on every page.
- Everything it needs is bundled, so nothing loads from a CDN.





What it doesn't do
- It's one widget per forum. For several blocks, place several different widgets.
- No per-tag or per-page targeting. It shows wherever FoF Forum Widgets places it.
- If you'd rather write raw HTML, use LR HTML Widget instead.
Requirements
- Flarum 2.0 or later, PHP 8.3+
fof/forum-widgets-core
Install
composer require linkrobins/markdown-widget
Enable it under Admin, Extensions, write your content in its settings, then place it on the FoF Forum Widgets page.
Source: https://github.com/linkrobins/markdown-widget
Packagist: https://packagist.org/packages/linkrobins/markdown-widget
Every release is posted below.