photon/template-markdown

Markdown parser for Photon template engine

v1.1.2 2016-06-08 12:24 UTC

This package is auto-updated.

Last update: 2024-12-18 20:02:28 UTC


README

Build Status

Template tag to filter Markdown text to HTML

Quick start

  1. Add the module in your project

    composer require "photon/template-markdown:dev-master"

or for a specific version

composer require "photon/template-markdown:1.0.0"
  1. Add the Tag and the Modifier in your template engine configuration

    'template_tags' => array( 'Markdown' => '\photon\template\tag\Markdown', ), 'template_modifiers' => array( 'Markdown' => '\Michelf\MarkdownExtra::defaultTransform', ),

  2. Write some template

    {$mdtext|Markdown|safe}

or

{Markdown $mdtext}
  1. Enjoy