Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Feature/link embeding#307

Merged
zainforbjs merged 2 commits intomainfrom
feature/link-embeding
Mar 3, 2026
Merged

Feature/link embeding#307
zainforbjs merged 2 commits intomainfrom
feature/link-embeding

Conversation

@zainforbjs
Copy link
Copy Markdown
Contributor

Implemented backend and client-side embed helpers to auto-detect and render embeddable links (YouTube, Twitter/X) and convert other URLs to anchors. Added CFML functions in helpers.cfm: extractYouTubeId, getEmbedHtml, isEmbeddableUrl, and embedAndAutoLink; switched blog show view to use embedAndAutoLink for post content and included the new embedHelper.js. Add a new public/js/embedHelper.js to process markdown/html and replace matching links with responsive embed iframes, and updated showBlog.js to invoke the embed processing after swaps/DOMContentLoaded and include minor behavior/formatting tweaks in the blog view. Miscellaneous whitespace/formatting cleanups in show.cfm.

Implemented backend and client-side embed helpers to auto-detect and render embeddable links (YouTube, Twitter/X) and convert other URLs to anchors. Added CFML functions in helpers.cfm: extractYouTubeId, getEmbedHtml, isEmbeddableUrl, and embedAndAutoLink; switched blog show view to use embedAndAutoLink for post content and included the new embedHelper.js. Add a new public/js/embedHelper.js to process markdown/html and replace matching links with responsive embed iframes, and updated showBlog.js to invoke the embed processing after swaps/DOMContentLoaded and include minor behavior/formatting tweaks in the blog view. Miscellaneous whitespace/formatting cleanups in show.cfm.
@zainforbjs zainforbjs merged commit 3a6aca9 into main Mar 3, 2026
@zainforbjs zainforbjs deleted the feature/link-embeding branch March 3, 2026 12:43
@zainforbjs zainforbjs restored the feature/link-embeding branch March 5, 2026 12:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant