HtmlBlockAdapter.java
package io.github.evisentin.wordpress.rest.client.gutenberg.adapters.content;
import io.github.evisentin.wordpress.rest.client.gutenberg.adapters.reusable.SavedBlockAdapter;
import io.github.evisentin.wordpress.rest.client.gutenberg.model.content.WpHtmlBlock;
/**
* Saved-content adapter for {@code core/html}; preserves markup without running its save function.
*
* <p>Example stored block representation (illustrative saved markup):</p>
* <pre>{@code
* <!-- wp:html -->
* <section class="notice">Custom HTML content</section>
* <!-- /wp:html -->
* }</pre>
* <p>The adapter preserves supplied content; it does not generate this markup or render the block.</p>
*/
public final class HtmlBlockAdapter extends SavedBlockAdapter<WpHtmlBlock> {
/**
* Creates an adapter for {@code core/html}.
*/
public HtmlBlockAdapter() {
super("core/html", WpHtmlBlock.class, WpHtmlBlock::new);
}
}