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

Add support for overriding block element using blockStyleFn #113

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

filipengberg
Copy link

This pull request adds the possibility to override the rendered block element using blockStyleFn. This functionality is currently supported in inlineStyleFn so seems fitting that it can be done in blockStyleFn as well.

It is currently possible to override the block tag using a custom blockRenderer. The problem is that using a blockRenderer causes the conversion to skip renderBlockContent which does a lot of good stuff. When all you want is to modify the block element but keep the default blockRenderer, this functionality comes in handy!

@ochicf
Copy link

ochicf commented Apr 14, 2021

Hi @sstur, is there work needed to be done before this MR is merged? Really interested in this.

Thanks.

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

Successfully merging this pull request may close these issues.

2 participants