Skip to content

Highlighter Hooks -- How? #590

@darth-cheney

Description

@darth-cheney

Based on the other open issues posted here, it seems like everyone would benefit from more hooks.

In my case, it would be good to have hooks that fire throughout the highlighting process. I'm willing to implement a few of these and PR, but it's unclear to me based on reading the other code how one would implement a new hook within the highlighter.js module (ie, access the greater annotator app to runHook).

Is there a simplified explanation of the adding hooks process (not from the docs) or can someone provide one?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions