cm/flow-markdown

Last activity 03 Apr 2017 23
composer require cm/flow-markdown

Flow plugin to parse Markdown document.

1.0.0

Version
1.0.0
Type
neos-plugin
Release Date
Apr 03, 2017 21:38
Source
git
Distribution
zip
Requires
GPLv3
  • #flow
  • #parser
  • #markdown
  • #document
  • #md
ff24782042857158db5e9bb723d57cbace2ab7af

Parse markdown to html

This package includes:

  • Service to inject and use it in your php code
  • ViewHelper to parse markdown in your Fluid template

Available Options

  • nofollow (boolen) - If true, all generated links will have a rel="nofollow" tag included
  • increaseHeadlineLevelBy (int) - If value = 1, headline tags (e.g. h1 ) will start with h(1+value). This is to prevent duplicated h1 tags

How to use the viewhelper

Add this to the head of your Fluid template where you want to use this ViewHelper

{namespace parse=CM\Flow\Markdown\ViewHelpers}

Now you can use the viewhelper like this:

<parse:markdown nofollow="true" increaseHeadlineLevelBy="1">{your_markdown_text}</parse:markdown>

The content of the readme is provided by Github
The same vendor provides 7 package(s).