Class Horde_Text_Textile
References: http://www.textism.com/tools/textile/ http://en.wikipedia.org/wiki/Textile_(markup_language) http://hobix.com/textile/ http://whytheluckystiff.net/ruby/redcloth/ http://redcloth.rubyforge.org/rdoc/ http://code.whytheluckystiff.net/redcloth/browser/trunk/test/textism.yml
Example: get XHTML from a given Textile-markup string ($string) $textile = new Horde_Text_Textile; echo $textile->toHtml($string);
public
|
string |
REGEX_A_HLGN
A_HLGN |
#
'(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! ))'
|
string |
REGEX_A_VLGN
A_VLGN |
#
'[\-^~]'
|
string |
REGEX_A
'(?:' . A_HLGN . '|' . A_VLGN . ')*' |
#
'(?:(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! ))|[\-^~])*'
|
string |
REGEX_S
'(?:' . S_CSPN . '|' . S_RSPN . ')*' |
#
'(?:(?:\\\\\d+)|(?:\/\d+))*'
|
string |
REGEX_C
'(?:' . C_CLAS . '|' . C_STYL . '|' . C_LNGE . '|' . A_HLGN . ')*' |
#
'(?:(?:\([^)]+\))|(?:\{[^}]+\})|(?:\[[^]]+\])|(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! )))*'
|
string |
REGEX_PUNCT
PUNCT |
#
'\!"#\$%&\'\*\+,-\.\/\:;\=\?@\\\^_`\|~'
|
string |
REGEX_URL
LINK_RE |
#
'[\w"$\-_.+!*\'(),";\/?:@=&%#{}|\\^~\[\]`]'
|
string |
REGEX_BLOCK_TAGS
Block tags |
#
'bq|bc|notextile|pre|h[1-6]|fn\d+|p'
|
public static
string
|
$GLYPH_QUOTE_SINGLE_OPEN
Glyphs. Can be overridden if you want to substitute different entities. |
#
'‘'
|
public static
string
|
$GLYPH_QUOTE_SINGLE_CLOSE
|
#
'’'
|
public static
string
|
$GLYPH_QUOTE_DOUBLE_OPEN
|
#
'“'
|
public static
string
|
$GLYPH_QUOTE_DOUBLE_CLOSE
|
#
'”'
|
public static
string
|
$GLYPH_APOSTROPHE
|
#
'’'
|
public static
string
|
$GLYPH_PRIME
|
#
'′'
|
public static
string
|
$GLYPH_PRIME_DOUBLE
|
#
'″'
|
public static
string
|
$GLYPH_ELLIPSIS
|
#
'…'
|
public static
string
|
$GLYPH_EMDASH
|
#
'—'
|
public static
string
|
$GLYPH_ENDASH
|
#
'–'
|
public static
string
|
$GLYPH_DIMENSION
|
#
'×'
|
public static
string
|
$GLYPH_TRADEMARK
|
#
'™'
|
public static
string
|
$GLYPH_REGISTERED
|
#
'®'
|
public static
string
|
$GLYPH_COPYRIGHT
|
#
'©'
|
public static
string
|
$GLYPH_RETURN_ARROW
|
#
'↩'
|
public
boolean
|
$images
Show images? On by default. |
#
true
|
public
string
|
$rel
Rel attribute for links (ex: nofollow). |
#
''
|