feat: Add loom video embed support for help center articles (#9288)

* feat: Add loom support for helpcenter articles

* fix: responsiveness

* fix: style issues

* fix: review comments

* Update custom_markdown_renderer.rb
This commit is contained in:
Muhsin Keloth
2024-04-24 11:44:10 +05:30
committed by GitHub
parent 8957277e5d
commit d7e928df26
2 changed files with 48 additions and 25 deletions

View File

@@ -68,6 +68,20 @@ describe CustomMarkdownRenderer do
end
end
context 'when link is a Loom URL' do
let(:loom_url) { 'https://www.loom.com/share/VIDEO_ID' }
it 'renders an iframe with Loom embed code' do
output = render_markdown_link(loom_url)
expect(output).to include(`
<iframe
width="640"
height="360"
src="https://www.loom.com/embed/VIDEO_ID"
`)
end
end
context 'when link is a Vimeo URL' do
let(:vimeo_url) { 'https://vimeo.com/1234567' }