https://github.com/photon/template-markdown
Template tag to filter Markdown text to HTML
https://github.com/photon/template-markdown
Last synced: about 1 year ago
JSON representation
Template tag to filter Markdown text to HTML
- Host: GitHub
- URL: https://github.com/photon/template-markdown
- Owner: photon
- License: lgpl-2.1
- Created: 2014-11-14T12:31:44.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-06-08T12:32:42.000Z (about 10 years ago)
- Last Synced: 2025-02-15T20:49:41.864Z (over 1 year ago)
- Language: Shell
- Size: 13.7 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
template-markdown
=====================
[](https://travis-ci.org/photon/template-markdown)
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"
2) 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',
),
3) Write some template
{$mdtext|Markdown|safe}
or
{Markdown $mdtext}
3) Enjoy