fix(content): convert leftover WPBakery shortcodes to clean markdown#37
Merged
Conversation
20 migrated posts (12 podcast, 8 articles) still contained raw
`[vc_row][vc_column]...` WPBakery/Visual Composer shortcodes that rendered
as literal text (the site builds with goldmark unsafe:false).
Unwrap structural shortcodes and convert the content-bearing ones instead
of dropping them:
- vc_video -> Hugo {{< youtube ID >}} embed under a "Watch:" label
- vc_custom_heading / vc_cta / vc_toggle / vc_tta_section -> markdown headings + body
- vc_btn and linked headings -> markdown links (URL-decoded)
- vc_single_image (unrecoverable WP media IDs) -> dropped
Also rewrite the badly-broken automation-summit team roster as a clean
markdown list and remove dead "Contact form not found" placeholders.
Verified: zero vc_ shortcodes remain in content/ and in the rendered site;
hugo build is clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q2NJsYE8nUKKHD25jXiHV1
✅ Deploy Preview for powershellorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
20 migrated posts (12 podcast, 8 articles) still contained raw WPBakery / Visual Composer shortcodes (
[vc_row][vc_column][vc_column_text]…) left over from the WordPress migration. Because the site builds withmarkup.goldmark.renderer.unsafe: false, the brackets weren''t interpreted — they showed up as literal text on the published pages.How
Rather than blindly stripping every
[vc_*](which would delete real content), structural wrappers are unwrapped and content-bearing shortcodes are converted:vc_row/vc_column/vc_column_text/vc_empty_space/*_innervc_video link=…{{< youtube ID >}}embed under a Watch: labelvc_custom_heading/vc_cta/vc_toggle/vc_tta_sectionvc_btnand linked headingsvc_single_image(WP media IDs, no source files in repo)The badly-broken
2021-05-05-automation-summit.mdteam roster (destructured into orphaned names) was rewritten as a clean markdown list, and dead "Contact form not found" placeholders were removed.The migration script (
scripts/migrate-posts.cjs) is intentionally untouched — its source tree no longer exists, so these were one-time in-place fixes.Verification
grepfor[vc_/[/vc_acrosscontent/→ 0 matcheshugo --gcbuilds cleanly (2367 pages, no template/markdown errors)public/→ no stray shortcodes anywhereautomation-summitshows all 5 team Twitter links and no contact-form error;then-nowrenders the Twitch heading link and "Join us on Twitch" buttonpodcast_urlfront matter untouched, so audio players are unaffected🤖 Generated with Claude Code