Knap.md
LogicFiltersVariablesAPIGitHub ↗

Guide

VariablesLogicFilters

Reference

API

Project

GitHub ↗npm ↗

strip_md

Remove Markdown formatting while keeping readable text.

Filters/strip_md

Syntax

{{ value | strip_md }}{{ value | stripmd }}

Also available as stripmd.

Example

01

Basic usage

InputTS
1{2  "text": "**Bold** and [linked](https://example.com)"3}
TemplateKNAP
1{{ text | strip_md }}
OutputKNAP
1Bold and linked

Related filters

strip_tagsRemove all HTML tags except an optional allowlist.
Previous← strip_attrNextstrip_tags →
Knap is open source under the MIT license.View source ↗

On this page

SyntaxExamplesRelated filters
strip_md filter — Knap