Petra
AI assistant for GrootMade
Hi! I'm Petra 👋 Ask me to help you find the perfect WP plugin, theme, or template kit.
Convert content between HTML, block markup, and Markdown formats.
Convert content between HTML, block markup, and Markdown formats.
This plugin serves as a central hub for converting content between three primary formats: HTML, serialized block markup, and Markdown. It is designed for developers and site builders who need to work with content in different formats, whether for importing, exporting, or processing within a content management system. The tool composes existing, specialized libraries behind a single, consistent interface, ensuring reliable conversions without reinventing core parsing logic.
Format Conversion: The core function converts content bidirectionally between HTML, block markup, and Markdown. All cross-format conversions route through a block-array pivot, ensuring consistency.
Normalization: Beyond conversion, it can validate and normalize content that is already declared to be in a specific format. This helps clean imported or user-generated content before storage.
Extensible Adapter System: New content formats can be supported by registering a new adapter. The core system does not need modification, keeping it lean and focused on orchestration.
REST API Integration: The plugin extends the REST API for supported post types, allowing content to be requested and delivered in a specified format via a simple query parameter.
Developer-Focused API: It provides clear PHP functions and WP-CLI commands for programmatic conversion, making it suitable for use in themes, custom plugins, and build processes.
No comments yet. Be the first to start the conversation!