From 32cf20d9f56e026fc356562504526cff640d5297 Mon Sep 17 00:00:00 2001 From: jennspencer Date: Fri, 28 Jun 2024 19:01:48 -0700 Subject: [PATCH] fix/compatibility changes for migration (#924) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![PR App][icn]][demo] | Fix RM-XYZ :-------------------:|:----------: ## 🧰 Changes migration diffs had a lot of discrepancies, tightening things up (only v minor changes) ## 🧬 QA & Testing - [Broken on production][prod]. - [Working in this PR app][demo]. [demo]: https://markdown-pr-PR_NUMBER.herokuapp.com [prod]: https://SUBDOMAIN.readme.io [icn]: https://user-images.githubusercontent.com/886627/160426047-1bee9488-305a-4145-bb2b-09d8b757d38a.svg --- __tests__/__snapshots__/index.test.js.snap | 2 +- __tests__/compilers/compatability.test.ts | 2 +- __tests__/components/Image.test.tsx | 28 ++++---- .../__snapshots__/index.test.ts.snap | 2 +- components/Image/index.tsx | 70 +++++++++---------- processor/compile/compatibility.ts | 28 +++++--- 6 files changed, 69 insertions(+), 63 deletions(-) diff --git a/__tests__/__snapshots__/index.test.js.snap b/__tests__/__snapshots__/index.test.js.snap index 034b28108..a7330bb0b 100644 --- a/__tests__/__snapshots__/index.test.js.snap +++ b/__tests__/__snapshots__/index.test.js.snap @@ -335,7 +335,7 @@ exports[`export multiple Markdown renderers > renders plain markdown as React 1` exports[`heading 1`] = `"

Example Header

"`; -exports[`image 1`] = `"

Image

"`; +exports[`image 1`] = `"Image"`; exports[`list items 1`] = ` "