Skip to content

Incorrect handling of escaping inside code blocks #90

@patrickdepinguin

Description

@patrickdepinguin

Input:

```
sed 's/\(..\)/\\\x\1/g'
```

Debug output:

"/home/tdescham/.gem/ruby/2.2.0/bin/wkhtmltopdf"  -q - "/tmp/test.pdf"
<div class="CodeRay">
  <div class="code"><pre>sed 's/\(..\)/\\x/g'</pre></div>
</div>

The input code is no longer the same, the triple backslashes became 2, and the \1 backreference disappeared.

Tested with 0.5.9.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions