method
add_regexp_handling
v2_6_3 -
Show latest stable
- Class:
RDoc::Markup
add_regexp_handling(pattern, name)public
Add to other inline sequences. For example, we could add WikiWords using something like:
parser.add_regexp_handling(/\b([A-Z][a-z]+[A-Z]\w+)/, :WIKIWORD)
Each wiki word will be presented to the output formatter.