You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an image: <img src="http://example.com/#\\>" >
173
172
`;
174
173
175
-
expect(mdx(rdmd.mdast(md)).trim()).toBe('This is an image: <img src="http://example.com/#\\>" />');
174
+
expect(mdx(mdastV6(md)).trim()).toBe('This is an image: <img src="http://example.com/#\\>" />');
176
175
});
177
176
178
177
it('compiles escapes',()=>{
179
178
constmd=`
180
179
\\- not a list item
181
180
`;
182
181
183
-
expect(mdx(rdmd.mdast(md)).trim()).toBe('\\- not a list item');
182
+
expect(mdx(mdastV6(md)).trim()).toBe('\\- not a list item');
expect(mdx(rdmd.mdast(md))).toBe(`Contact me at {user.email}\n`);
203
+
expect(mdx(mdastV6(md))).toBe(`Contact me at {user.email}\n`);
205
204
});
206
205
207
206
describe('<HTMLBlock> wrapping',()=>{
@@ -225,7 +224,7 @@ This is an image: <img src="http://example.com/#\\>" >
225
224
`;
226
225
227
226
it('should wrap raw <style> tags in an <HTMLBlock>',async()=>{
228
-
constlegacyAST=rdmd.mdast(rawStyle);
227
+
constlegacyAST=mdastV6(rawStyle);
229
228
constconverted=mdx(legacyAST);
230
229
constcompiled=compile(converted);
231
230
constComponent=(awaitrun(compiled)).default;
@@ -238,7 +237,7 @@ This is an image: <img src="http://example.com/#\\>" >
238
237
});
239
238
240
239
it('should wrap raw <script> tags in an <HTMLBlock>',async()=>{
241
-
constlegacyAST=rdmd.mdast(rawScript);
240
+
constlegacyAST=mdastV6(rawScript);
242
241
constconverted=mdx(legacyAST);
243
242
constcompiled=compile(converted);
244
243
constComponent=(awaitrun(compiled)).default;
@@ -255,7 +254,7 @@ This is an image: <img src="http://example.com/#\\>" >
255
254
* @note compatability mode has been deprecated for RMDX
256
255
*/
257
256
constspy=vi.spyOn(console,'log');
258
-
constlegacyAST=rdmd.mdast(magicScript);
257
+
constlegacyAST=mdastV6(magicScript);
259
258
constconverted=mdx(legacyAST);
260
259
constcompiled=compile(converted);
261
260
constComponent=awaitrun(compiled);
@@ -287,7 +286,7 @@ This is an image: <img src="http://example.com/#\\>" >
@@ -311,7 +310,7 @@ This is an image: <img src="http://example.com/#\\>" >
@@ -325,7 +324,7 @@ This is an image: <img src="http://example.com/#\\>" >
constmd=`** bold ** and _ italic _ and *** bold italic ***`;
327
326
328
-
constrmdx=mdx(rdmd.mdast(md));
327
+
constrmdx=mdx(mdastV6(md));
329
328
expect(rmdx).toMatchInlineSnapshot(`
330
329
"**bold** and *italic* and ***bold italic***
331
330
"
@@ -352,7 +351,7 @@ This is an image: <img src="http://example.com/#\\>" >
> Lorem ipsum dolor sit amet consectetur adipisicing elit. Error eos animi obcaecati quod repudiandae aliquid nemo veritatis ex, quos delectus minus sit omnis vel dolores libero, recusandae ea dignissimos iure?
0 commit comments