@mujian/js-sdk 0.0.6-beta.21 → 0.0.6-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react.js +1 -1
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -374,7 +374,7 @@ const MdRendererBase = ({ content })=>{
|
|
|
374
374
|
let mes = messageFormatting(content);
|
|
375
375
|
mes = mes.replace(/<pre><code(.*)>[\s\S]*?<\/code><\/pre>/g, (match)=>{
|
|
376
376
|
if (!match.includes("<body>") && !match.includes("</body>")) return match;
|
|
377
|
-
const code = match.replace(
|
|
377
|
+
const code = match.replace(/<pre><code(.*?)>/g, "").replace(/<\/code><\/pre>/g, "");
|
|
378
378
|
const srcdoc = createSrcContent(unescapeHTML(code));
|
|
379
379
|
const id = v4();
|
|
380
380
|
setIframeIdList((prev)=>[
|