PHPackages                             ingress-it-solutions/laravel-markdown-viewer - 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. ingress-it-solutions/laravel-markdown-viewer

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

ingress-it-solutions/laravel-markdown-viewer
============================================

Simple Blade directive for markdown parsing.

02PHP

Since May 15Pushed 1y agoCompare

[ Source](https://github.com/ingress-it-solutions/laravel-markdown-viewer)[ Packagist](https://packagist.org/packages/ingress-it-solutions/laravel-markdown-viewer)[ RSS](/packages/ingress-it-solutions-laravel-markdown-viewer/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

### ⚠️ Important

[](#️-important)

**This project is no longer maintained, will not received any updates and will not support future versions of Laravel.**

---

Laravel-Markdown-Viewer
=======================

[](#laravel-markdown-viewer)

A small, lightweight and easy-to-use Laravel package for handling markdown. It comes with a facade, a helper function and a Blade directive to make life easier for you.

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

[](#installation)

To install it, simply pull it down with Composer. Run the `php artisan vendor:publish` command to publish the configuration file.

```
composer require andreasindal/laravel-markdown:"3.0.1"

```

Laravel 5.5 and above use Package Auto-Discovery, so you do not have to manually add the MarkdownServiceProvider.

Usage
-----

[](#usage)

### Blade-directive

[](#blade-directive)

The markdown parser may be used in your Blade templates by using the `@markdown` directive.

```

    {{ $post->title }}

        @markdown($post->body)

```

You can also use a block-style syntax:

```
@markdown
# Hello world

This *text* will be **parsed** to [HTML](http://laravel.com).
@endmarkdown
```

### Facade

[](#facade)

If you registered the Markdown facade as shown above, you can easily parse markdown using it.

```
$markdown = "# Hello";

$html = Markdown::parse($markdown) // Hello
```

### Helper-functions

[](#helper-functions)

```
$html = markdown('# Hello'); // Hello
```

```
$html = markdown_capture(function () {
    echo "# Hello";
    echo "\n\n";
    echo "So **cool**!"
});

// Hello
// So cool!
```

---

Of course, you could also resolve the parser from the service container and use it yourself.

```
$parser = app('Ingress\Markdown\Parser');
$html = $parser->parse('# Hello'); // Hello
```

### Drivers (NEW!)

[](#drivers-new)

Laravel-Markdown-Viewer allows you to add custom markdown drivers. In order to use a custom markdown driver, you need to create a class that implements the `Ingress\Markdown\Drivers\MarkdownDriver` interface. The interface contains two methods: `text` and `line`. `text` is used to convert a block of markdown to HTML, while `line` is used to convert a single line.

Laravel-Markdown-Viewer ships with a `ParsedownDriver` using the [Parsedown-package](http://parsedown.org/) by @erusev.

Copyright
---------

[](#copyright)

Copyright by Ingress IT Solutions

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity18

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ingress-it-solutions-laravel-markdown-viewer/health.svg)

```
[![Health](https://phpackages.com/badges/ingress-it-solutions-laravel-markdown-viewer/health.svg)](https://phpackages.com/packages/ingress-it-solutions-laravel-markdown-viewer)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

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