Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render function not triggering #8

Open
Torone opened this issue May 22, 2023 · 0 comments
Open

Render function not triggering #8

Torone opened this issue May 22, 2023 · 0 comments

Comments

@Torone
Copy link

Torone commented May 22, 2023

According to the title, I'm trying to use the render function option but, unfortunately, it does nothing...
Also, it fires many errors in a loop if trying to add the hashtag or mention plugins... It would be nice to see documentation on how to use them... Thanks

      nl2br: true,  // OK
      formatHref: (href, type) => {
        console.log(href, type); // OK
        if (type === "url") {
          console.log(href, type); // OK
        }
        if (type === "hashtag") {
          console.log(href, type); // NEVER REACHED
        }
        return href;
      },
      render: (ctx) => {
        console.log("ctx", ctx); // NEVER REACHED
      },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant