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
onBlockRendererSlotted hook is not working #7518
Comments
Hi @jsjant Thank you for the reminder. This API was temporarily shelved for implementation at the time due to plans to support unique block types. But the block type implementation has a low priority in the near future. So I will implement this API as soon as possible to support intercepting block rendering by block UUID. |
+1 – This API hook would support a significant range of interesting plugins that are currently difficult or impossible to write cleanly. (Including the one I'm currently trying to write for embedding mini-apps into docs a la Coda.io 😉). Obsidian's API, for instance, provides access to the relevant DOM element prior to rendering, making it very easy to manipulate it at will, for instance, by injecting React components inside of it. |
Cool @jsjant This feature is released into 0.8.14, so you can try the latest version. Also, do not forget to upgrade plugin SDK |
It worked! Thank you! |
It returns a cleanup function. If the code is to be believed :)
|
Hi!
onBlockRendererSlotted hook is described in docs, but it's not in the code. So I wonder if it is possible to use it?
Also, could you please tell me if there's a way to change how a block is rendered using plugins (and most importantly to intercept rendering process)? I'd like to have an ability to make hyperlink from text matching certain pattern. For instance, if it says JIRA-2009, then it's a link to your JIRA installation somewhere.
The text was updated successfully, but these errors were encountered: