TxStyle · Textile Documentation

The Textile Markup Reference for Textpattern


Unicode symbols

Some unicode symbols can be produced by placing simple characters in parentheses or square brackets.



Input (editable)

Browser
HTML

More about: Unicode symbols

  1. Other unicode characters and symbols

Unicode symbols that are entered directly are ignored by Textile.

p{font-size:20pt}. ☢ ☁ ♘

With a browser that is capable and a font that supports the characters you will see this:

☢ ☁ ♘


  1. Setting alternate glyphs

Textile’s typographic substitutions can be overridden with the setSymbol method. If you need to setup Textile to do non-standard substitutions, call setSymbol before you parse the input with textileThis or textileRestricted.

$parser = new \Netcarver\Textile\Parser();
$parser->setSymbol('half', '1⁄2');
$parser->textileThis('Hello [1/2] World!');

The symbol names you can pass to setSymbol() can be found here.

Paste code into the box above.

Further reading: Unicode symbols




PHP Textile v3.5.5


Donate Textpattern developers.