Skip to content

A small Twig template filter for parsing text as Markdown within the Blocks CMS

Notifications You must be signed in to change notification settings

jamierumbelow/blocks.markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Markdown

Markdown is a very small plugin for the Blocks CMS that adds a markdown filter into the templating engine.

Installation

Clone / download the code and place the markdown folder inside blocks/plugins. Install through the Blocks CP.

Usage

Create a plain text block to store the content. Ensure it supports line breaks. Then, in your template, pipe the block into the markdown filter:

{% for entry in blx.entries.find({ section: 'Blog' }) %}
	{{ entry.content | markdown }}
{% endfor %}

About

A small Twig template filter for parsing text as Markdown within the Blocks CMS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages