mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
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:
@@ -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' }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user