Class: RedmineExtensions::HTMLFormatting::Formatter
- Includes:
- ActionView::Helpers::TagHelper
- Defined in:
- lib/redmine_extensions/html_formatting/formatter.rb
Constant Summary collapse
- RULES =
[:tidy_html_from_editor, :rinku_auto_link, :inline_auto_link, :inline_auto_mailto]
- AUTO_LINK_RE =
%r{ ( # leading text #<\w+.*?>| # leading HTML tag, or [^=<>!:'"/]| # leading punctuation, or \{\{\w+\(| # inside a macro? ^ # beginning of line ) ( (?:https?://)| # protocol spec, or (?:s?ftps?://)| (?:www\.)| # www.* (?:smb://)| (?:file://) ) ( (\S+?) # url (\/)? # slash ) ((?:>)?|[^\w\=\/;\(\)]*?) # post (?=<|\s| |$) }x