PHPackages                             baraja-core/markdown-latte-filter - 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. [Templating &amp; Views](/categories/templating)
4. /
5. baraja-core/markdown-latte-filter

ActiveLibrary[Templating &amp; Views](/categories/templating)

baraja-core/markdown-latte-filter
=================================

Tools for content rendering.

v3.2.0(3y ago)387.9k[3 issues](https://github.com/baraja-core/markdown-latte-filter/issues)4PHPPHP ^8.0

Since Aug 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/baraja-core/markdown-latte-filter)[ Packagist](https://packagist.org/packages/baraja-core/markdown-latte-filter)[ Docs](https://github.com/baraja-core/markdown-latte-filter)[ RSS](/packages/baraja-core-markdown-latte-filter/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (15)Versions (27)Used By (4)

Markdown Latte filter
=====================

[](#markdown-latte-filter)

Tools for automatic work with markdown.

How to install
--------------

[](#how-to-install)

Simple call Composer command:

```
$ composer require baraja-core/markdown-latte-filter
```

In project `common.neon` you must define Latte extension and services.

Fully works example configuration is in `common.neon` file in this package:

```
extensions:
    markdownLatteFilter: Baraja\Markdown\MarkdownLatteFilterExtension
```

Latte filter
------------

[](#latte-filter)

Basic use in Latte template:

```
{$content|markdown}
```

That will generated `` automatically with the content:

```

   Final content...

```

To easily style content within a particular project, the `` is automatically marked as a `markdown` class.

Filter `|noescape` is not required, escaping and security is started automatically by inner logic.

Renderer as a service
---------------------

[](#renderer-as-a-service)

In case of using Markdown renderer in an inner model or an application logic, you should inject the service by DIC.

Default renderer is `CommonMarkRenderer` (package `league/commonmark`).

To override renderer please change definition of `markdown.renderer` service in project `common.neon`, or use some of these:

- `NoRenderer` (return unchanged input),
- `SimpleRenderer` (escape by `htmlspecialchars` function only).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 97.2% 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 ~50 days

Recently: every ~142 days

Total

23

Last Release

1344d ago

Major Versions

v1.1.7 → v2.0.02021-01-15

v2.0.3 → v3.0.02021-02-11

PHP version history (3 changes)v1.0.0PHP &gt;=7.1.0

v1.1.0PHP &gt;=7.4.0

v3.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3382204?v=4)[baraja](/maintainers/baraja)[@baraja](https://github.com/baraja)

---

Top Contributors

[![janbarasek](https://avatars.githubusercontent.com/u/4738758?v=4)](https://github.com/janbarasek "janbarasek (70 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

---

Tags

contentescapelattelatte-filtermarkdown-filter

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/baraja-core-markdown-latte-filter/health.svg)

```
[![Health](https://phpackages.com/badges/baraja-core-markdown-latte-filter/health.svg)](https://phpackages.com/packages/baraja-core-markdown-latte-filter)
```

###  Alternatives

[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[contributte/forms-bootstrap

Nette extension for Bootstrap forms

211.1M4](/packages/contributte-forms-bootstrap)[nepada/form-renderer

Latte template based form renderer for Nette forms with full support for Bootstrap 3, 4 &amp; 5.

11251.0k](/packages/nepada-form-renderer)[webrouse/n-asset-macro

Asset macro for Latte and Nette Framework useful for assets cache busting (with gulp, webpack, etc.)

1264.4k1](/packages/webrouse-n-asset-macro)[nextras/forms-rendering

Rendering helpers for Nette Framework Forms.

1698.4k2](/packages/nextras-forms-rendering)

PHPackages © 2026

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