# Plugin – lektor-markdown-excerpt 0.1

Adds filter for Markdown body excerpt.

#### Project links

#### GitHub Statistics

#### Meta

Version: 0.1

Author: Luka Zakrajsek

#### Tags

Jinja filters, Markdown, and setup-env

View all tags.

## Project Description

# lektor-markdown-excerpt
This plugin adds filter for Markdown body excerpt.
## Enabling the Plugin
To enable the plugin run this command:
```ini
$ lektor plugins add markdown-excerpt
```
## In Templates
Plugin provides the `|excerpt` filter that can be used to render first
paragraph of Markdown:
```jinja
{{ post.body|excerpt }}
```
It takes one optional argument which is the separator for the excerpt:
```jinja
{{ post.body|excerpt:'\n\n##' }}
```

## Comments