Skip to content

Handlebars statements in code blocks are removed in custom helpers are included #437

@pzuraq

Description

@pzuraq

If options.helpers is set and custom Handlebars helpers are included, the second pass on the markup of examples with Handlebars removes all unregistered helpers entirely. In the case where some examples have been included in a code block in Markdown, like below, this will result in an empty code block.

/**
 * ```hbs
 * {{#test-component}}
 *   Some text
 * {{/test-component}}
 * ```
 */

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