Plugin Directory

Changeset 3461553


Ignore:
Timestamp:
02/14/2026 11:26:33 PM (6 weeks ago)
Author:
klimentp
Message:

Version 1.0.4 - Hotfix: Youtube, Image caption, Markdown headings

Location:
draftseo-ai
Files:
26 added
3 edited

Legend:

Unmodified
Added
Removed
  • draftseo-ai/trunk/README.md

    r3461540 r3461553  
    173173## Changelog
    174174
     175### 1.0.4
     176
     177Pipeline ordering and content processing fixes for YouTube embeds and headings.
     178
     179- **YouTube pipeline order fix** — The YouTube-to-Gutenberg-block converter was running after the markdown link converter and paragraph wrapper, which had already transformed YouTube URLs into `<a>` tags or wrapped them in `<p>` tags — making them unrecognizable. YouTube conversion now runs at the front of the pipeline, before any markdown or paragraph processing occurs.
     180- **Gutenberg block comment preservation** — The `removeHtmlComments()` cleanup step was stripping ALL HTML comments, including the essential `<!-- wp:embed -->` and `<!-- /wp:embed -->` markers that WordPress needs to render video blocks. The function now preserves any comments starting with `<!-- wp:` or `<!-- /wp:` while still removing other HTML comments.
     181- **Paragraph wrapper Gutenberg awareness** — The `wrapLooseParagraphs()` function was wrapping Gutenberg block comment lines in `<p>` tags, breaking the block structure. It now recognizes `<!-- wp:` and `<!-- /wp:` lines as block-level content and leaves them untouched.
     182- **Heading after image fix** — The markdown image converter (`convertMarkdownImages`) was not adding a newline after the closing `</figure>` tag. When the AI placed a heading immediately after an image (`![alt](url)\n### Heading`), the heading was glued to `</figure>` on the same line, preventing the heading converter from matching it. A trailing newline is now added after every `</figure>`.
     183- **Removed auto-generated figcaptions** — The image converter was duplicating the image's alt text into a visible `<figcaption>` element below every image. Alt text like "lizard aquarium – Creating the Ideal Environment" appeared as bold text under the photo. Alt text is metadata for accessibility (screen readers) and SEO — it should not be displayed as visible content. The `<figcaption>` generation has been removed; images now only use the `alt` attribute.
     184
    175185### 1.0.3
    176186
  • draftseo-ai/trunk/draftseo-ai.php

    r3461540 r3461553  
    44 * Plugin URI: https://draftseo.ai/wp-plugin
    55 * Description: Publish AI-generated blogs from DraftSEO.AI platform directly to WordPress. Transfers images from Nebius CDN to WordPress media library while maintaining SEO optimization.
    6  * Version: 1.0.3
     6 * Version: 1.0.4
    77 * Author: DraftSEO.AI
    88 * Author URI: https://draftseo.ai
     
    3838
    3939// Define plugin constants
    40 define('DRAFTSEO_VERSION', '1.0.3');
     40define('DRAFTSEO_VERSION', '1.0.4');
    4141define('DRAFTSEO_PLUGIN_DIR', plugin_dir_path(__FILE__));
    4242define('DRAFTSEO_PLUGIN_URL', plugin_dir_url(__FILE__));
  • draftseo-ai/trunk/readme.txt

    r3461540 r3461553  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 1.0.3
     7Stable tag: 1.0.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    106106
    107107== Changelog ==
     108
     109= 1.0.4 =
     110
     111Pipeline ordering and content processing fixes for YouTube embeds and headings.
     112
     113* Fixed YouTube videos not rendering on WordPress — the content processing pipeline was converting YouTube URLs to Gutenberg embed blocks too late, after other processors had already transformed them into unrecognizable formats. YouTube conversion now runs before markdown and paragraph processing
     114* Fixed Gutenberg embed block markers being stripped — the HTML comment cleaner was removing all comments including the essential `<!-- wp:embed -->` and `<!-- /wp:embed -->` markers. Comment cleaner now preserves WordPress block comments
     115* Fixed paragraph wrapper breaking Gutenberg blocks — lines containing Gutenberg block markers were being incorrectly wrapped in `<p>` tags, breaking the block structure. Paragraph wrapper now recognizes `<!-- wp:` lines as block-level content
     116* Fixed markdown headings appearing as raw text after images — the image-to-figure converter did not add a newline after `</figure>`, causing the next line's heading (e.g., `### Heading`) to be glued to the figure tag and unrecognized by the heading converter
     117* Removed auto-generated figcaptions from images — image alt text was being duplicated as a visible `<figcaption>` below every image, showing descriptive text that should only be used for accessibility (screen readers). Images now use alt text in the `alt` attribute only
    108118
    109119= 1.0.3 =
     
    217227== Upgrade Notice ==
    218228
     229= 1.0.4 =
     230Fixes YouTube videos not rendering on WordPress by correcting pipeline order and preserving Gutenberg block markers. Also fixes headings appearing as raw markdown after images.
     231
    219232= 1.0.3 =
    220233Fixes YouTube videos being stripped when publishing to WordPress. Also fixes headings rendering as plain text and malformed citation links.
Note: See TracChangeset for help on using the changeset viewer.