-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Define API method for handling legacy content data #590
Comments
Ideally this would not need to be a separate method: we just define a data/markup structure that a block can accept, and look inside the post content for valid instances of these structures. See #391 (comment) for an example of how this could be achieved. |
Another thought I discussed at some point with @aduth was that this layer could also function for pasting content from other places (word, google docs, etc). |
See also #589 for text. Potentially text could be handled automatically if it's just the p tag or text without delimiters. |
Closing this as things have evolved and we are looking at handling specific cases individually. |
A block should have a way to optionally define what legacy structures to match. This may be a private API we use for core blocks only.
Examples: text without p tags, captioned images with shortcodes.
This issue is not involved with whether these will be enabled by default (i.e: reading shortcode captioned images and overwriting on save with the new markup).
The text was updated successfully, but these errors were encountered: