diff --git a/init.rb b/init.rb index 044b7ee..6383f57 100644 --- a/init.rb +++ b/init.rb @@ -29,11 +29,11 @@ end Redmine::WikiFormatting::Macros.register do desc <<-DESCRIPTION - Embed video attachments +Embed video attachments - {{video(attachment.mp4)}} show video with default size 640x360 - {{video(attachment.mp4, width=480, height=320)}} show video with size 480x320 - DESCRIPTION +{{video(attachment.mp4)}} show video with default size 640x360 +{{video(attachment.mp4, width=480, height=320)}} show video with size 480x320 +DESCRIPTION macro :video do |obj, args| @width = args[1].gsub(/\D/,'') if args[1]