Skip to content

Commit

Permalink
fix: usr: fixed macro button in markdown editor (fixes #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Tessaro committed Apr 15, 2022
1 parent d1c27cb commit 4847e58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/redmine_reveal/helpers/markdown_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def heads_for_wiki_formatter_with_reveal
end
else
# Rails 5, use new new `prepend` method
module Redmine::WikiFormatting::Markdown::Helper
module RedmineReveal_markdown
def heads_for_wiki_formatter
super
unless @heads_for_wiki_formatter_with_reveal_included
Expand All @@ -43,7 +43,7 @@ def heads_for_wiki_formatter
end
end

module Redmine::WikiFormatting::Textile::Helper
prepend RedmineReveal_textile
module Redmine::WikiFormatting::Markdown::Helper
prepend RedmineReveal_markdown
end
end

0 comments on commit 4847e58

Please sign in to comment.