Download the PHP package kitzberger/cakephp-markdown without Composer
On this page you can find all versions of the php package kitzberger/cakephp-markdown. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kitzberger/cakephp-markdown
More information about kitzberger/cakephp-markdown
Files in kitzberger/cakephp-markdown
Package cakephp-markdown
Short Description Cakephp Markdown plugin for CakePHP 4.x
License MIT
Informations about the package cakephp-markdown
CakePHP Markdown
CakePHP 4 plugin to parse markdown syntax in your view templates.
Installation
Configuration & Usage
To your config/bootstrap.php
file add \App\Application::addPlugin('Tanuck/Markdown');
Then, load the helper where needed. For example, in your controller:
then in your templates, you can output markdown syntax like so:
Advanced Configuration
Markdown is rendered using the cebe/markdown library which offers 3 different markdown parser classes.
- Markdown - using the original syntax definition: http://daringfireball.net/projects/markdown/syntax
- GithubMarkdown - GitHubs own markdown flavour: https://help.github.com/articles/github-flavored-markdown/
- MarkdownExtra - an extension of the original by michelf: http://michelf.ca/projects/php-markdown/extra/
By default, the plugin will use Markdown, the first of the 3 above. However you can specify which of the 3 you use wish to use when loading the helper. Like so:
License
cakephp-markdown is offered under an MIT license.
All versions of cakephp-markdown with dependencies
cakephp/cakephp Version ^4.0
cakephp/plugin-installer Version *
cebe/markdown Version 1.0.x