Skip to content

[Request]: Highlight pre- and post-context #50

@jez

Description

@jez

Feature Request Checklist

What feature would you like to request?

What I'd really like is some way to take input like this:

highlight = the thing I highlighted
contextualText = Something before the thing I highlighted, and then something after

and produce this:

🎯 Highlight:: Something before the thing I highlighted, and then something after.

One way I can think to achieve this would be if there were a Handlebars helper function to get the contextual text before and after the highlighted text (or, to have two additional template variables, contextualTextPre and contextualTextPost, which achieve the same thing).

If there's already a way to achieve this with functionality built into this plugin or Handlebars itself, I'd love to learn about it.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    Status

    📘 Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions