ExtraStatic: powerful and easy publishing

Skip to content

Fix revisions with script in diff

Chris Dawson requested to merge fix_revisions_with_script_in_diff into main

If a revision diff had <script> inside it, the svelte compiler would get confused and assume this was the end of the closing block, even if it was inside a string. This converts any instances of <script> or </script in the diff string to ⧀script> which prevents the compiler from crashing.

Merge request reports