Skip to content

Allow "focus" parameter for excerpts of plain strings#1602

Merged
bobdenotter merged 1 commit intomasterfrom
Allow-focus-parameter-for-excerpts-of-plain-strings
Jul 5, 2020
Merged

Allow "focus" parameter for excerpts of plain strings#1602
bobdenotter merged 1 commit intomasterfrom
Allow-focus-parameter-for-excerpts-of-plain-strings

Conversation

@bobdenotter
Copy link
Copy Markdown
Member

With this PR you can now highlight words using both Content, as well as plain strings.

Example:

    {{ "Cenasti in vita numquam bene, cum omnia in ista Consumis squilla atque acupensere cum decimano."|excerpt(30, focus = 'omnia') }}
    {{ record|excerpt(100, focus = 'omnis') }}

Fixes #1590

@bobdenotter bobdenotter merged commit 5aee375 into master Jul 5, 2020
@bobdenotter bobdenotter deleted the Allow-focus-parameter-for-excerpts-of-plain-strings branch July 5, 2020 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Highlight for custom search

1 participant