Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

bobdenotter
Copy link
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