Skip to content

Documentation example for templates suggestion function #420

Open
@DRocksCoding

Description

@DRocksCoding

Hello,
Is it possible to add a very simple example usage of the templates suggestion with custom html being returned please?

suggestion is a function that receives one argument, a suggestion to be displayed. It is used when rendering suggestions, and should return a string, which can contain HTML. warning Caution: because this function allows you to output arbitrary HTML, you should make sure it's trusted, and accessible.

Am I right in understanding that this could, for example, highlight the matching letters as bold text?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationUser requests new documentation or improvements to existing documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions