Don't show the commented code from Gutenberg when comparing revisions #930
htmgarcia
started this conversation in
Feature Requests
Replies: 1 comment
-
Another similar possible feature to compare changes with the post as shown in frontend (no HTML code): |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Block comments in WordPress, such as < !-- wp:paragraph -- >, can contain important information about the configuration of content, including block alignment and other dynamic block settings. However, for some websites that prioritize clean content over formatting details, it may be more useful to compare content without the commented code from Gutenberg blocks.
This can be particularly helpful when reviewing changes to website content. By ignoring the formatting information contained within block comments, reviewers can more easily focus on the actual content changes being made.
This type of implementation won't affect the saved content. We'll just render the content as WP does in frontend to remove the noise of the Gutenberg blocks.
I'm thinking in a setting to turn on/off and/or a toggle when previewing.
Current result:
Expected result:
Beta Was this translation helpful? Give feedback.
All reactions