Skip to content

Commit

Permalink
Better line-mode example
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jul 24, 2014
1 parent 0bf5c2a commit 88a6c44
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ A `pd` shortcut filter is also available:
The filters also work in a single-line mode, where the text that’s passed in will not include wrapping `<p>` tags:

```jinja
<p class="pullquote">
{{ entry.myPullquoteField|parsedown('line') }}
</p>
<h1>{{ entry.title|parsedown('line') }}</h1>
```

## Plugin API
Expand All @@ -40,5 +38,5 @@ Other plugins can take advantage of Parsedown using the provided API:
```php
$parsedText = craft()->parsedown->parseText($entry->myBodyField);

$parsedLine = craft()->parsedown->parseLine($entry->myPullquoteField);
$parsedLine = craft()->parsedown->parseLine($entry->title);
```

0 comments on commit 88a6c44

Please sign in to comment.