Top Level Namespace
Defined Under Namespace
Modules: Jazzy Classes: String
Constant Summary collapse
- ELIDED_AUTOLINK_TOKEN =
'36f8f5912051ae747ef441d6511ca4cb'.freeze
Instance Method Summary collapse
Instance Method Details
#autolink_regex(middle_regex, after_highlight) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/jazzy/sourcekitten.rb', line 16 def autolink_regex(middle_regex, after_highlight) start_tag_re, end_tag_re = if after_highlight [/<span class="(?:n|kt|nc)">/, '</span>'] else ['<code>', '</code>'] end /(#{start_tag_re})[ \t]*(#{middle_regex})[ \t]*(#{end_tag_re})/ end |