Skip to content

Conversation

@kellyjosephprice
Copy link
Contributor

@kellyjosephprice kellyjosephprice commented Oct 28, 2025

PR App Fix CX-2475

🧰 Changes

Fixes how the migration was unescaping backslashes.

I believe the issue has to do with the how the latest version of remark handles escaping. AFAICT the easiest fix is it manually add back backslashes to the html strings.

🧬 QA & Testing

See tests

@kellyjosephprice kellyjosephprice deleted the fix/migrating-escaped-html branch November 13, 2025 17:40
@kellyjosephprice kellyjosephprice restored the fix/migrating-escaped-html branch November 13, 2025 20:21
@kellyjosephprice kellyjosephprice marked this pull request as ready for review November 13, 2025 22:49
@kellyjosephprice kellyjosephprice requested review from a team, ashacs, erunion and t-tullis and removed request for a team November 13, 2025 22:49
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth also adding a test for when something that has the escaped already in an html block?

[block:html]
{
  "html": "{`\n<pre>\n  <code>\n    RegexpExtract([Address], "\\\\s*([a-zA-Z]+)", 2)\n  </code>\n</pre>`}"
}
[/block]

wondering if having double of this would bust it up:

{`{`

@kellyjosephprice kellyjosephprice merged commit c2461e0 into next Nov 13, 2025
11 checks passed
@kellyjosephprice kellyjosephprice deleted the fix/migrating-escaped-html branch November 13, 2025 23:18
rafegoldberg pushed a commit that referenced this pull request Nov 13, 2025
## Version 11.7.4
### 🛠 Fixes & Updates

* migrating escaped html ([#1218](#1218)) ([c2461e0](c2461e0)), closes [/github.com//pull/1218/files#diff-6ee34c9f6ef36e20e57970ea252f6c7fdb016cf85f195e8c5212981b1c161586R42-R52](https://github.com/readmeio//github.com/readmeio/markdown/pull/1218/files/issues/diff-6ee34c9f6ef36e20e57970ea252f6c7fdb016cf85f195e8c5212981b1c161586R42-R52)

<!--SKIP CI-->
@rafegoldberg
Copy link
Contributor

This PR was released!

🚀 Changes included in v11.7.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants