class Object
Constants
- ELIDED_AUTOLINK_TOKEN
Public Instance Methods
autolink_regex(middle_regex, after_highlight)
click to toggle source
# File lib/jazzy/sourcekitten.rb, line 21 def autolink_regex(middle_regex, after_highlight) start_tag_re, end_tag_re = if after_highlight [/<span class="(?:n|kt|kd|nc)">/, '</span>'] else ['<code>', '</code>'] end /(#{start_tag_re})[ \t]*(#{middle_regex})[ \t]*(#{end_tag_re})/ end