Skip to content

No way to directly process a block's inner text? #559

@benpusherhq

Description

@benpusherhq

(Related to: #353.)

It doesn't seem possible (or I can't figure out how) to implement this:

{{#markdown}}
My _markdown_ text parser would handle this inner text
{{/markdown}}

This is possible in vanilla Mustache via context functions (which get the inner text and a render callback). Context functions in Handlebars appear not to have this same signature and thus cannot be used for this purpose.

As there are workarounds to handle this, it is not a critical issue. I can also understand how this might not be handled "by design". That said, it would be nice to be able to process the inner text of a block via a registerHelper or a context function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions