Repair bad regex and copy shape-inside reference correctly.

This fixes #642 (closed) as well as an odd regex issue that probably caused a lot of other weird things.

Merge request reports

Loading