Skip to content

Commit

Permalink
Merge branch 'next' into refactor/docs-and-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyjosephprice committed Feb 10, 2025
2 parents 3872c11 + 98f9975 commit c62dbfd
Show file tree
Hide file tree
Showing 31 changed files with 1,505 additions and 1,091 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
Changelog
===

## Version 8.1.0
### ✨ New & Improved

* tailwind ([#1052](https://github.com/readmeio/markdown/issues/1052)) ([c197298](https://github.com/readmeio/markdown/commit/c1972982550c71b921d520b2cf5b68536efe9d56))

### 🛠 Fixes & Updates

* upgrading vitest to v3, laying ground work for vitest browser testing ([#1054](https://github.com/readmeio/markdown/issues/1054)) ([75659ef](https://github.com/readmeio/markdown/commit/75659ef8d49a0700db35c0e04ce3492623d039af))

## Version 8.0.1
### 🛠 Fixes & Updates

* refactor exports util to support broader formatting and export types ([#1051](https://github.com/readmeio/markdown/issues/1051)) ([61e1a3b](https://github.com/readmeio/markdown/commit/61e1a3b4f3b1c90fd437137cd0235b1e74e03768))

## Version 8.0.0
### ⚠ BREAKING CHANGES

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions __tests__/browser/markdown.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ describe('visual regression tests', () => {
'tables',
'codeBlockTests',
'tableOfContentsTests',
'tailwindRootTests',
'varsTest',
];

Expand Down
8 changes: 4 additions & 4 deletions __tests__/compilers/compatability.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React from 'react';
import { vi } from 'vitest';


import { mdx, migrate, compile, run } from '../../index';
import { mdx, compile, run } from '../../index';
import { migrate } from '../helpers';

describe('compatability with RDMD', () => {
Expand Down Expand Up @@ -229,7 +229,7 @@ This is an image: <img src="http://example.com/#\\>" >

it('should wrap raw <style> tags in an <HTMLBlock>', async () => {
const converted = migrate(rawStyle);
const compiled = compile(converted);
const compiled = await compile(converted);
const Component = (await run(compiled)).default;
render(
<div className="markdown-body">
Expand All @@ -241,7 +241,7 @@ This is an image: <img src="http://example.com/#\\>" >

it('should wrap raw <script> tags in an <HTMLBlock>', async () => {
const converted = migrate(rawScript);
const compiled = compile(converted);
const compiled = await compile(converted);
const Component = (await run(compiled)).default;
render(
<div className="markdown-body">
Expand All @@ -257,7 +257,7 @@ This is an image: <img src="http://example.com/#\\>" >
*/
const spy = vi.spyOn(console, 'log');
const converted = migrate(magicScript);
const compiled = compile(converted);
const compiled = await compile(converted);
const Component = await run(compiled);
render(
<div className="markdown-body">
Expand Down
2 changes: 1 addition & 1 deletion __tests__/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const silenceConsole =
};

export const execute = async (doc: string, compileOpts = {}, runOpts = {}, { getDefault = true } = {}) => {
const code = compile(doc, compileOpts);
const code = await compile(doc, compileOpts);
const mod = await run(code, runOpts);

return getDefault ? mod.default : mod;
Expand Down
Loading

0 comments on commit c62dbfd

Please sign in to comment.