src/Ciconia/Extension/Core/EscaperExtension.php
public function register(Markdown $markdown)
    {
        $this->hashes = $this->generateSpecialCharsHash();

        $markdown->on('escape.special_chars', array($this, 'escapeSpecialChars'));
        $markdown->on('inline', array($this, 'escapeSpecialChars'), 20);
        $markdown->on('inline', array($this, 'escapeAmpsAndBrackets'), 60);
        $markdown->on('finalize', array($this, 'unescapeSpecialChars'), 20);
    }
public function register(Markdown $markdown)
    {
        $this->hashes = $this->generateSpecialCharsHash();

        $markdown->on('escape.special_chars', array($this, 'escapeSpecialChars'));
        $markdown->on('inline', array($this, 'escapeSpecialChars'), 20);
        $markdown->on('inline', array($this, 'escapeAmpsAndBrackets'), 60);
        $markdown->on('finalize', array($this, 'unescapeSpecialChars'), 20);
    }
{@inheritdoc}