Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Sep 9, 2019
1 parent d453e7b commit 0062fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll/scholar/plugins/tiny.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def apply(value)
# Use of \g<1> pattern back-reference to allow for capturing nested {} groups.
# The first (outermost) capture of $1 is used.
value.to_s.gsub(/\\tiny(\{(?:[^{}]|\g<1>)*\})/) {
"<span class="tiny">#{$1[1..-2]}</span>"
"<span class=\"tiny\">#{$1[1..-2]}</span>"
}
end
end
Expand Down

0 comments on commit 0062fae

Please sign in to comment.