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

Custom blocks #27

Open
christianpredebon opened this issue Jan 24, 2024 · 1 comment
Open

Custom blocks #27

christianpredebon opened this issue Jan 24, 2024 · 1 comment

Comments

@christianpredebon
Copy link

Hi!
Is there a way to define custom blocks which are easily reusable through the editor? Something like a NoticeAlert component that will have a yellow background, a ErrorAlert component that will have a red background and so on.

I'm using react-markdown-preview to client side rendering the result.

Thanks

@kwinyyyc
Copy link
Owner

kwinyyyc commented Jan 28, 2024

@christianpredebon Hi, I am not aware of any way the editor can achieve this by default.
Let me know if you know any editor that has this feature I can have a reference to.

For the custom block, do you mean the react-markdown-preview would automatically render a certain type of markdown into a React component?

What would be the markdown for NoticeAlert?

Would help if you could share more on your use case, cause it doesn't sound like a common use case.

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

2 participants