module Autolink

Extended Modules

Defined in:

autolink.cr
autolink/version.cr

Constant Summary

AUTO_LINK_CRE = [/((<[^>]+$)|((&lt;[^>]+$)))/, /^[^>]*>/, /<a\b.*?>/i, /<\/a>/i]
AUTO_LINK_RE = /\ (?: ((?:ed2k|ftp|http|https|irc|mailto|news|gopher|nntp|telnet|webcal|xmpp|callto|feed|svn|urn|aim|rsync|tag|ssh|sftp|rtsp|afs|file):)\/\/ | www\. ) ((.+?(?=&lt;)) | [^\s<\"]+) /ix
BRACKETS = {"]" => "[", ")" => "(", "}" => "{"}
VERSION = "0.1.2"

Instance Method Summary

Instance Method Detail

def auto_link(text, html = {} of String => String) #

[View source]
def auto_linked?(left, right) #

[View source]
def content_tag(tag, text, attributes = {} of String => String) #

[View source]