Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 18, 2026

Converted 53 published WordPress posts from _drafts/will_not_backport/ export files to Jekyll-compatible Markdown.

Implementation

  • Conversion script (convert_wordpress_to_markdown.py):

    • Parses WordPress key-value export format with quoted strings
    • Filters published posts (post_type: "post", post_status: "publish")
    • Converts HTML to Markdown via html2text
    • Generates Jekyll front matter with title, date, categories
    • Outputs files as YYYY-MM-DD-slug.md
  • Documentation (CONVERSION_README.md):

    • Conversion methodology and limitations
    • WordPress used 'n' for newlines, causing artifacts in code blocks and concatenated words (e.g., "co ection")
    • Posts serve as baseline; manual cleanup recommended per-post as needed

Result

53 posts converted (2011-2017), bringing total from 8 to 61 posts.

Original prompt

extract wordpress files to markdown


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits January 18, 2026 17:44
Co-authored-by: blytkerchan <974179+blytkerchan@users.noreply.github.com>
Co-authored-by: blytkerchan <974179+blytkerchan@users.noreply.github.com>
Co-authored-by: blytkerchan <974179+blytkerchan@users.noreply.github.com>
Copilot AI changed the title [WIP] Extract WordPress files and convert to Markdown Extract WordPress posts to Markdown Jan 18, 2026
Copilot AI requested a review from blytkerchan January 18, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants