The Blank plugin provides a comprehensive collection of Twig filters designed to enhance content processing and presentation. Originally developed to address the common need of adding target="_blank" attributes to links in Markdown content, it has evolved into a toolkit that extends templating capabilities.
This plugin offers four specialized filters that solve common development challenges:
- automatic link target management for better user experience
- flexible Markdown processing without unwanted paragraph wrappers
- seamless JSON data integration in templates, and
- innovative custom CSS class injection directly within Markdown syntax.
Whether you're building blogs, documentation sites, or complex web applications, Blank provides the tools to streamline your content workflow while maintaining clean, semantic markup and enhanced functionality.
Questions or bug reports
We are happy to help!
Send us an email to hello@polilla.studio and we'll reply you as soon as we can.
Or you can visit GitHub Issues Page to report any issues with plugin.
The following plugins extend or depend on the plugin

Moonamick
Manage all the content of your website in a simple and powerfull way
Moonamick
Manage all the content of your website in a simple and powerfull way

Monkey Leads
An OctoberCMS plugin for capture and manage leads
Monkey Leads
An OctoberCMS plugin for capture and manage leads
Installation
Install the PolillaStudio.Blank plugin through the OctoberCMS backend or attach to your project. Once installed, all filters are immediately available in your Twig templates.
Available Filters
blank
Filter
Automatically adds target="_blank"
attribute to all links in HTML content.
Usage:
{{ content | md | blank }}
Example:
<!-- Input --> {{ "Visit [our website](https://example.com) for more info" | md | blank }} <!-- Output --> <p>Visit <a href="https://example.com" target="_blank">our website</a> for more info</p>
md_line
Filter
Processes Markdown content without wrapping it in paragraph tags, ideal for inline content.
Usage:
{{ content | md_line }}
Example:
<!-- Input --> {{ "**Bold text** with *italic*" | md_line }} <!-- Output --> <strong>Bold text</strong> with <em>italic</em>
json_decode
Filter
Converts JSON strings to PHP arrays for use in Twig templates.
Usage:
{{ jsonString | json_decode }}
Example:
<!-- Input --> {% set data = '{"name": "John", "age": 30}' | json_decode %} {{ data.name }} is {{ data.age }} years old <!-- Output --> John is 30 years old
mdclass
Filter
Extends Markdown with custom CSS class injection using [text | class]
syntax.
Usage:
{{ content | mdclass }}
Example:
<!-- Input --> {{ "This is [highlighted text | highlight] in a paragraph" | mdclass }} <!-- Output --> <p>This is <span class="highlight">highlighted text</span> in a paragraph</p>
Advanced Example:
<!-- Input --> {{ "**Bold text** with [custom styling | accent-text] and normal text" | mdclass }} <!-- Output --> <p><strong>Bold text</strong> with <span class="accent-text">custom styling</span> and normal text</p>
Filter Combinations
Filters can be chained together for powerful content processing:
{{ content | mdclass | blank }}
This will process custom classes first, then add target="_blank" to any generated links.
Best Practices
- Use
md_line
for headings, buttons, and inline content - Apply
blank
aftermd
ormdclass
for proper link processing - Sanitize user input before using
json_decode
- Use semantic CSS class names with
mdclass
for maintainable styling
Questions or bug reports
- We are happy to help!
Send us an email to hello@polilla.studio and we'll reply you as soon as we can.
Or you can visit GitHub Issues Page to report any issues with plugin.
-
This plugin has not been reviewed yet.
-
1.3.1 |
Update README and plugin description Aug 21, 2025 |
---|---|
1.3.0 |
Advanced feature: Added `mdclass` filter with [text | class] syntax for custom CSS classes in Markdown Aug 21, 2025 |
1.2.0 |
New functionality: Added `json_decode` filter for working with JSON data in templates Aug 21, 2025 |
1.1.0 |
Feature expansion: Added `md_line` filter for processing inline Markdown without <p> wrapper tags Aug 21, 2025 |
1.0.2 |
added json_decode and md_line filter Jul 15, 2024 |
1.0.1 |
Tagged version. Fix installation problems Jan 22, 2024 |
1.0.0 |
First version of Blank Aug 05, 2023 |