You've already forked baupm-core
description style
This commit is contained in:
8
init.rb
8
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]
|
||||
|
||||
Reference in New Issue
Block a user