lib/html/pipeline/ruby_markup/transformer.rb in html-pipeline-ruby_markup-0.9.0 vs lib/html/pipeline/ruby_markup/transformer.rb in html-pipeline-ruby_markup-0.9.1
- old
+ new
@@ -23,13 +23,13 @@
# Matching [漢字(かんじ)] or [漢字(かんじ)](url)
RubyTagPattern = %r(
(?<!!)
\[
- (?<word>[^\[\(\)]+(?=\())(?<!\s)
- \((?<reading>[^\[\]]+(?=\)))\)
+ (?<word>[^\[\(]+(?=\())(?<!\s)
+ \((?<reading>[^\)]+(?=\)))\)
\]
- (\((?<uri>[^\(\)]+(?=\)))\))*
+ (\((?<uri>[^\)]+(?=\)))\))*
)x
RubyMarkupInsideCodePattern = /`.*#{RubyTagPattern}.*`/
attr_reader :content