summaryrefslogtreecommitdiff
path: root/packages/markdown/component
diff options
context:
space:
mode:
Diffstat (limited to 'packages/markdown/component')
-rw-r--r--packages/markdown/component/CHANGELOG.md78
-rw-r--r--packages/markdown/component/Markdown.astro49
-rw-r--r--packages/markdown/component/package.json43
-rw-r--r--packages/markdown/component/readme.md16
-rw-r--r--packages/markdown/component/test/astro-markdown-plugins.test.js37
-rw-r--r--packages/markdown/component/test/astro-markdown-shiki.test.js147
-rw-r--r--packages/markdown/component/test/astro-markdown.test.js244
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-plugins/add-classes.mjs18
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-plugins/astro.config.mjs7
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-plugins/package.json13
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-plugins/src/layouts/content.astro10
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-plugins/src/pages/astro.astro10
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/langs/astro.config.mjs19
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/langs/package.json9
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/langs/src/layouts/content.astro10
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/langs/src/pages/astro.astro31
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/normal/astro.config.mjs5
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/normal/package.json9
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/normal/src/layouts/content.astro10
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/normal/src/pages/astro.astro18
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/package.json9
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-custom/astro.config.mjs10
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-custom/package.json9
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-custom/src/layouts/content.astro10
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-custom/src/pages/astro.astro14
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/astro.config.mjs6
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/package.json9
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/src/layouts/content.astro10
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/src/pages/astro.astro14
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/src/pages/index.md24
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-false/astro.config.mjs6
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-false/package.json9
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-false/src/layouts/content.astro10
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-false/src/pages/astro.astro18
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-null/astro.config.mjs6
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-null/package.json9
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-null/src/layouts/content.astro10
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-null/src/pages/astro.astro18
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-true/astro.config.mjs6
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-true/package.json9
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-true/src/layouts/content.astro10
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-true/src/pages/astro.astro18
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/astro.config.mjs9
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/package.json13
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/components/Counter.jsx7
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/components/Example.jsx5
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/components/Hello.jsx5
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/components/SlotComponent.astro13
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/components/SvelteButton.svelte11
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/components/TextBlock.jsx20
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/components/index.js5
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/content/code-element.md3
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/imported-md/plain.md6
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/layouts/content.astro10
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/layouts/layout-props.astro17
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/braces.astro13
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/children.md12
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/close.astro12
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/code-element.astro7
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/code-in-md.md16
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/code.astro13
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/comment-with-js.md23
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/comment.md2
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/complex.astro16
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/content.astro6
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/dash.md14
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/deep.astro29
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/empty-code.md20
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/external.astro19
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/imported-md/with-components.astro9
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/layout-props.md4
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/nested-list.astro32
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/no-elements.astro5
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/post.astro16
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/pages/scopedStyles-code.astro21
-rw-r--r--packages/markdown/component/test/fixtures/astro-markdown/src/scripts/test.js1
-rw-r--r--packages/markdown/component/test/test-utils.js10
77 files changed, 0 insertions, 1451 deletions
diff --git a/packages/markdown/component/CHANGELOG.md b/packages/markdown/component/CHANGELOG.md
deleted file mode 100644
index bd49bc439..000000000
--- a/packages/markdown/component/CHANGELOG.md
+++ /dev/null
@@ -1,78 +0,0 @@
-# @astrojs/markdown-component
-
-## 1.0.5
-
-### Patch Changes
-
-- [#7343](https://github.com/withastro/astro/pull/7343) [`3d9a392a0`](https://github.com/withastro/astro/commit/3d9a392a09133aeb7a6efeb59c307f27a9b83198) Thanks [@matthewp](https://github.com/matthewp)! - Fix Markdown component error message false positive
-
-## 1.0.4
-
-### Patch Changes
-
-- [#7104](https://github.com/withastro/astro/pull/7104) [`826e02890`](https://github.com/withastro/astro/commit/826e0289005f645b902375b98d5549c6a95ccafa) Thanks [@bluwy](https://github.com/bluwy)! - Specify `"files"` field to only publish necessary files
-
-## 1.0.3
-
-### Patch Changes
-
-- [#6494](https://github.com/withastro/astro/pull/6494) [`a13e9d7e3`](https://github.com/withastro/astro/commit/a13e9d7e33baccf51e7d4815f99b481ad174bc57) Thanks [@Yan-Thomas](https://github.com/Yan-Thomas)! - Consistency improvements to several package descriptions
-
-## 1.0.2
-
-### Patch Changes
-
-- [#5281](https://github.com/withastro/astro/pull/5281) [`a558cf317`](https://github.com/withastro/astro/commit/a558cf317a98bfb79688a31ddb81c910e16e79c2) Thanks [@aleksa-codes](https://github.com/aleksa-codes)! - Update URLs in package.json
-
-## 1.0.1
-
-### Patch Changes
-
-- [#4208](https://github.com/withastro/astro/pull/4208) [`fe3b42398`](https://github.com/withastro/astro/commit/fe3b423982faa87c106e6a072bb14cb0a6678064) Thanks [@myakura](https://github.com/myakura)! - README update
-
-## 1.0.0
-
-### Major Changes
-
-- [`04ad44563`](https://github.com/withastro/astro/commit/04ad445632c67bdd60c1704e1e0dcbcaa27b9308) - > Astro v1.0 is out! Read the [official announcement post](https://astro.build/blog/astro-1/).
-
- **No breaking changes**. This package is now officially stable and compatible with `astro@1.0.0`!
-
-## 0.2.1
-
-### Patch Changes
-
-- [#4085](https://github.com/withastro/astro/pull/4085) [`c15cb3663`](https://github.com/withastro/astro/commit/c15cb36636320012c7d0c9d6ac8620029da70b0b) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Fix TypeScript error when importing the component
-
-## 0.2.0
-
-### Minor Changes
-
-- [#4016](https://github.com/withastro/astro/pull/4016) [`00fab4ce1`](https://github.com/withastro/astro/commit/00fab4ce135eb799cac69140403d7724686733d6) Thanks [@bholmesdev](https://github.com/bholmesdev)! - The use of components and JSX expressions in Markdown are no longer supported by default.
-
- For long term support, migrate to the `@astrojs/mdx` integration for MDX support (including `.mdx` pages!).
-
- Not ready to migrate to MDX? Add the legacy flag to your Astro config to re-enable the previous Markdown support.
-
- ```js
- // https://astro.build/config
- export default defineConfig({
- legacy: {
- astroFlavoredMarkdown: true,
- },
- });
- ```
-
-* [#3986](https://github.com/withastro/astro/pull/3986) [`bccd88f0e`](https://github.com/withastro/astro/commit/bccd88f0ebe1fbf383c0cee4b27a4c24c72dea72) Thanks [@matthewp](https://github.com/matthewp)! - Move the Markdown component to its own package
-
- This change moves the Markdown component into its own package where it will be maintained separately. All that needs to change from a user's perspective is the import statement:
-
- ```astro
-
- ```
-
- Becomes:
-
- ```astro
-
- ```
diff --git a/packages/markdown/component/Markdown.astro b/packages/markdown/component/Markdown.astro
deleted file mode 100644
index a9d095fb5..000000000
--- a/packages/markdown/component/Markdown.astro
+++ /dev/null
@@ -1,49 +0,0 @@
----
-interface Props {
- content?: string;
-}
-
-const dedent = (str: string) => {
- const _str = str.split('\n').filter(s => s.trimStart().length > 0);
- if (_str.length === 0) {
- return str.trimStart();
- }
- const trimmedSpace = _str[0].replace(_str[0].trimStart(), '');
- return str
- .split('\n')
- .map((ln) => ln.startsWith(trimmedSpace) ? ln.replace(trimmedSpace, '') : ln)
- .join('\n');
-}
-
-// Internal props that should not be part of the external interface.
-interface InternalProps extends Props {
- class: string;
- $scope: string;
-}
-
-let { content, class: className } = Astro.props as InternalProps;
-let html = null;
-let htmlContent = '';
-
-// If no content prop provided, use the slot.
-if (!content) {
- content = await Astro.slots.render('default');
- if (content !== undefined && content !== null) {
- content = dedent(content);
- }
-}
-
-if (content) {
- htmlContent = await (Astro as any).__renderMarkdown(content, {
- $: {
- scopedClassName: className,
- },
- });
-}
-
-html = htmlContent;
----
-
-<>
-{html ? <Fragment set:html={html} /> : <slot />}
-</>
diff --git a/packages/markdown/component/package.json b/packages/markdown/component/package.json
deleted file mode 100644
index b3c0fca9a..000000000
--- a/packages/markdown/component/package.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "@astrojs/markdown-component",
- "description": "Use the legacy Markdown component in your Astro site",
- "version": "1.0.5",
- "type": "module",
- "author": "withastro",
- "license": "MIT",
- "repository": {
- "type": "git",
- "url": "https://github.com/withastro/astro.git",
- "directory": "packages/markdown/component"
- },
- "bugs": "https://github.com/withastro/astro/issues",
- "homepage": "https://docs.astro.build/en/migrate/#markdown--component-removed",
- "main": "./Markdown.astro",
- "exports": {
- ".": {
- "astro": "./Markdown.astro"
- }
- },
- "files": [
- "Markdown.astro"
- ],
- "scripts": {
- "test": "mocha --exit --timeout 20000"
- },
- "devDependencies": {
- "@types/mocha": "^9.1.1",
- "astro": "workspace:*",
- "chai": "^4.3.7",
- "cheerio": "1.0.0-rc.12",
- "github-slugger": "^1.5.0",
- "mocha": "^9.2.2",
- "rehype-autolink-headings": "^6.1.1",
- "rehype-slug": "^5.0.1",
- "rehype-toc": "^3.0.2",
- "remark-code-titles": "^0.1.2"
- },
- "keywords": [
- "astro",
- "astro-component"
- ]
-}
diff --git a/packages/markdown/component/readme.md b/packages/markdown/component/readme.md
deleted file mode 100644
index ac621c82b..000000000
--- a/packages/markdown/component/readme.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# @astrojs/markdown-component
-
-This package brings legacy support for the `<Markdown />` component to all Astro projects.
-
-> **Warning**
-> The `<Markdown />` component does not work in SSR. Consider [importing Markdown content](https://docs.astro.build/en/guides/markdown-content/#importing-markdown) instead.
-
-```astro
----
-import Markdown from '@astrojs/markdown-component';
----
-
-<Markdown># Markdown syntax is now supported! **Yay!**</Markdown>
-```
-
-See our [Markdown Guide](https://docs.astro.build/en/guides/markdown-content/) for more info.
diff --git a/packages/markdown/component/test/astro-markdown-plugins.test.js b/packages/markdown/component/test/astro-markdown-plugins.test.js
deleted file mode 100644
index c748d81c9..000000000
--- a/packages/markdown/component/test/astro-markdown-plugins.test.js
+++ /dev/null
@@ -1,37 +0,0 @@
-import { expect } from 'chai';
-import * as cheerio from 'cheerio';
-import { loadFixture } from './test-utils.js';
-import addClasses from './fixtures/astro-markdown-plugins/add-classes.mjs';
-
-describe('Astro Markdown plugins', () => {
- let fixture;
-
- before(async () => {
- fixture = await loadFixture({
- root: './fixtures/astro-markdown-plugins/',
- markdown: {
- remarkPlugins: [
- 'remark-code-titles',
- ['rehype-autolink-headings', { behavior: 'prepend' }],
- ],
- rehypePlugins: [
- 'rehype-slug',
- ['rehype-toc', { headings: ['h2', 'h3'] }],
- [addClasses, { 'h1,h2,h3': 'title' }],
- ],
- },
- });
- await fixture.build();
- });
-
- it('Can render Astro <Markdown> with plugins', async () => {
- const html = await fixture.readFile('/astro/index.html');
- const $ = cheerio.load(html);
-
- // test 1: Added a TOC
- expect($('.toc')).to.have.lengthOf(1);
-
- // teste 2: Added .title to h1
- expect($('#hello-world').hasClass('title')).to.equal(true);
- });
-});
diff --git a/packages/markdown/component/test/astro-markdown-shiki.test.js b/packages/markdown/component/test/astro-markdown-shiki.test.js
deleted file mode 100644
index 580552770..000000000
--- a/packages/markdown/component/test/astro-markdown-shiki.test.js
+++ /dev/null
@@ -1,147 +0,0 @@
-import { expect } from 'chai';
-import * as cheerio from 'cheerio';
-import { loadFixture } from './test-utils.js';
-
-describe('Astro Markdown Shiki', () => {
- describe('Render shiki', () => {
- let fixture;
-
- before(async () => {
- fixture = await loadFixture({ root: './fixtures/astro-markdown-shiki/normal/' });
- await fixture.build();
- });
-
- it('Can render Astro <Markdown> with shiki', async () => {
- const html = await fixture.readFile('/astro/index.html');
- const $ = cheerio.load(html);
-
- // There should be no HTML from Prism
- expect($('.token')).to.have.lengthOf(0);
-
- expect($('pre')).to.have.lengthOf(2);
-
- expect($('span.line')).to.have.lengthOf(2);
- expect($('span.line').get(0).children).to.have.lengthOf(1);
- expect($('span.line').get(1).children).to.have.lengthOf(5);
- });
- });
-
- describe('Themes', () => {
- describe('Integrated theme', async () => {
- let fixture;
-
- before(async () => {
- fixture = await loadFixture({ root: './fixtures/astro-markdown-shiki/themes-integrated/' });
- await fixture.build();
- });
-
- it('<Markdown /> component', async () => {
- const html = await fixture.readFile('/astro/index.html');
- const $ = cheerio.load(html);
-
- expect($('pre')).to.have.lengthOf(1);
- expect($('pre').hasClass('astro-code')).to.equal(true);
- expect($('pre').attr().style).to.equal('background-color: #fff; overflow-x: auto;');
- });
- });
-
- describe('Custom theme', async () => {
- let fixture;
-
- before(async () => {
- fixture = await loadFixture({ root: './fixtures/astro-markdown-shiki/themes-custom/' });
- await fixture.build();
- });
-
- it('<Markdown /> component', async () => {
- const html = await fixture.readFile('/astro/index.html');
- const $ = cheerio.load(html);
-
- expect($('pre')).to.have.lengthOf(1);
- expect($('pre').hasClass('astro-code')).to.equal(true);
- expect($('pre').attr().style).to.equal('background-color: #FDFDFE; overflow-x: auto;');
- });
- });
- });
-
- describe('Custom langs', () => {
- let fixture;
-
- before(async () => {
- fixture = await loadFixture({ root: './fixtures/astro-markdown-shiki/langs/' });
- await fixture.build();
- });
-
- it('<Markdown /> component', async () => {
- const html = await fixture.readFile('/astro/index.html');
- const $ = cheerio.load(html);
-
- const segments = $('.line').get(6).children;
- expect(segments).to.have.lengthOf(3);
- expect(segments[0].attribs.style).to.be.equal('color: #E1E4E8');
- expect(segments[1].attribs.style).to.be.equal('color: #79B8FF');
-
- const unknownLang = $('.line').last().html();
- expect(unknownLang).to.be.equal(
- '<span style="color: #e1e4e8">This language does not exist</span>'
- );
- });
- });
-
- describe('Wrap', () => {
- describe('wrap = true', () => {
- const style =
- 'background-color: #24292e; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;';
- let fixture;
-
- before(async () => {
- fixture = await loadFixture({ root: './fixtures/astro-markdown-shiki/wrap-true/' });
- await fixture.build();
- });
-
- it('<Markdown /> component', async () => {
- const html = await fixture.readFile('/astro/index.html');
- const $ = cheerio.load(html);
-
- expect($('pre').get(0).attribs.style).to.equal(style);
- expect($('pre').get(1).attribs.style).to.equal(style);
- });
- });
- });
-
- describe('wrap = false', () => {
- const style = 'background-color: #24292e; overflow-x: auto;';
- let fixture;
-
- before(async () => {
- fixture = await loadFixture({ root: './fixtures/astro-markdown-shiki/wrap-false/' });
- await fixture.build();
- });
-
- it('<Markdown /> component', async () => {
- const html = await fixture.readFile('/astro/index.html');
- const $ = cheerio.load(html);
-
- expect($('pre').get(0).attribs.style).to.equal(style);
- expect($('pre').get(1).attribs.style).to.equal(style);
- });
- });
-
- describe('wrap = null', () => {
- const style = 'background-color: #24292e';
- let fixture;
-
- before(async () => {
- fixture = await loadFixture({ root: './fixtures/astro-markdown-shiki/wrap-null/' });
- await fixture.build();
- });
-
- it('<Markdown /> component', async () => {
- const html = await fixture.readFile('/astro/index.html');
- const $ = cheerio.load(html);
-
- expect($('pre').get(0).attribs.style).to.equal(style);
- expect($('pre').get(1).attribs.style).to.equal(style);
- });
- });
-});
diff --git a/packages/markdown/component/test/astro-markdown.test.js b/packages/markdown/component/test/astro-markdown.test.js
deleted file mode 100644
index 72546802f..000000000
--- a/packages/markdown/component/test/astro-markdown.test.js
+++ /dev/null
@@ -1,244 +0,0 @@
-import { expect } from 'chai';
-import * as cheerio from 'cheerio';
-import { loadFixture } from './test-utils.js';
-
-describe('Astro Markdown', () => {
- let fixture;
-
- before(async () => {
- fixture = await loadFixture({
- root: './fixtures/astro-markdown/',
- });
- await fixture.build();
- });
-
- // NOTE: This test uses legacy markdown, which requires `github-slugger` to be installed.
- // This breaks in strict dependency installation, but since it's a legacy feature, ignore for now.
- it('Can load markdown pages with Astro', async () => {
- const html = await fixture.readFile('/post/index.html');
- const $ = cheerio.load(html);
-
- // test 1: There is a div added in markdown
- expect($('#first').length).to.be.ok;
-
- // test 2: There is a div added via a component from markdown
- expect($('#test').length).to.be.ok;
- });
-
- it('Can handle code elements without extra spacing', async () => {
- const html = await fixture.readFile('/code-element/index.html');
- const $ = cheerio.load(html);
-
- $('code').each((_, el) => {
- expect($(el).html()).to.equal($(el).html().trim());
- });
- });
-
- it('Correctly handles component children in markdown pages (#3319)', async () => {
- const html = await fixture.readFile('/children/index.html');
-
- expect(html).not.to.contain('<p></p>');
- });
-
- it('Can handle HTML comments in markdown pages', async () => {
- const html = await fixture.readFile('/comment/index.html');
- const $ = cheerio.load(html);
-
- expect($('h1').text()).to.equal('It works!');
- });
-
- it('Prevents `*/` sequences from breaking HTML comments (#3476)', async () => {
- const html = await fixture.readFile('/comment-with-js/index.html');
- const $ = cheerio.load(html);
-
- expect($('h1').text()).to.equal('It still works!');
- });
-
- it('Can handle HTML comments in inline code', async () => {
- const html = await fixture.readFile('/comment-with-js/index.html');
- const $ = cheerio.load(html);
-
- expect($('p code').text()).to.equal('<!-- HTML comments in code -->');
- });
-
- it('Can handle HTML comments in code fences', async () => {
- const html = await fixture.readFile('/comment-with-js/index.html');
- const $ = cheerio.load(html);
-
- expect($('pre > code').text()).to.equal('<!-- HTML comments in code fence -->');
- });
-
- it('Can load more complex jsxy stuff', async () => {
- const html = await fixture.readFile('/complex/index.html');
- const $ = cheerio.load(html);
-
- expect($('#test').text()).to.equal('Hello world');
- });
-
- it('Empty code blocks do not fail', async () => {
- const html = await fixture.readFile('/empty-code/index.html');
- const $ = cheerio.load(html);
-
- // test 1: There is not a `<code>` in the codeblock
- expect($('pre')[0].children).to.have.lengthOf(1);
-
- // test 2: The empty `<pre>` failed to render
- expect($('pre')[1].children).to.have.lengthOf(0);
- });
-
- it('Runs code blocks through syntax highlighter', async () => {
- const html = await fixture.readFile('/code/index.html');
- const $ = cheerio.load(html);
-
- // test 1: There are child spans in code blocks
- expect($('code span').length).greaterThan(0);
- });
-
- it('Scoped styles should not break syntax highlight', async () => {
- const html = await fixture.readFile('/scopedStyles-code/index.html');
- const $ = cheerio.load(html);
-
- // test 1: <pre> tag has correct shiki class
- expect($('pre').hasClass('astro-code')).to.equal(true);
-
- // test 2: inline styles are still applied
- expect($('pre').is('[style]')).to.equal(true);
-
- // test 3: There are styled child spans in code blocks
- expect($('pre code span').length).to.be.greaterThan(0);
- expect($('pre code span').is('[style]')).to.equal(true);
- });
-
- function isAstroScopedClass(cls) {
- return /^astro-.*/.test(cls);
- }
-
- it('Scoped styles should be applied to syntax highlighted lines', async () => {
- const html = await fixture.readFile('/scopedStyles-code/index.html');
- const $ = cheerio.load(html);
-
- // test 1: the "pre" tag receives scoped style
- const preClassList = $('pre').attr('class').split(/\s+/);
- expect(preClassList.length).to.equal(3);
- const preAstroClass = preClassList.find(isAstroScopedClass);
- expect(Boolean(preAstroClass)).to.equal(true);
-
- // test 2: each "span" line receives scoped style
- const spanClassList = $('pre code span').attr('class').split(/\s+/);
- expect(spanClassList.length).to.equal(2);
- const spanAstroClass = spanClassList.find(isAstroScopedClass);
- expect(Boolean(spanAstroClass)).to.equal(true);
- });
-
- it('Renders correctly when deeply nested on a page', async () => {
- const html = await fixture.readFile('/deep/index.html');
- const $ = cheerio.load(html);
-
- // test 1: Rendered all children
- expect($('#deep').children()).to.have.lengthOf(3);
-
- // tests 2–4: Only rendered title in each section
- expect($('.a').children()).to.have.lengthOf(1);
- expect($('.b').children()).to.have.lengthOf(1);
- expect($('.c').children()).to.have.lengthOf(1);
-
- // test 5–7: Rendered title in correct section
- expect($('.a > h2').text()).to.equal('A');
- expect($('.b > h2').text()).to.equal('B');
- expect($('.c > h2').text()).to.equal('C');
- });
-
- it('Renders dynamic content though the content attribute', async () => {
- const html = await fixture.readFile('/external/index.html');
- const $ = cheerio.load(html);
-
- // test 1: Rendered markdown content
- expect($('#outer')).to.have.lengthOf(1);
-
- // test 2: Nested markdown content
- expect($('#inner')).to.have.lengthOf(1);
-
- // test 3: Scoped class passed down
- expect($('#inner').is('[class]')).to.equal(true);
- });
-
- it('Renders curly braces correctly', async () => {
- const html = await fixture.readFile('/braces/index.html');
- const $ = cheerio.load(html);
-
- // test 1: Rendered curly braces markdown content
- expect($('code')).to.have.lengthOf(3);
-
- // test 2: Rendered curly braces markdown content
- expect($('code:first-child').text()).to.equal('({})');
-
- // test 3: Rendered curly braces markdown content
- expect($('code:nth-child(2)').text()).to.equal('{...props}');
-
- // test 4: Rendered curly braces markdown content
- expect($('code:last-child').text()).to.equal('{/* JavaScript */}');
- });
-
- it('Does not close parent early when using content attribute (#494)', async () => {
- const html = await fixture.readFile('/close/index.html');
- const $ = cheerio.load(html);
-
- // test <Markdown content /> closed div#target early
- expect($('#target').children()).to.have.lengthOf(2);
- });
-
- it('Can render markdown with --- for horizontal rule', async () => {
- const html = await fixture.readFile('/dash/index.html');
- expect(!!html).to.equal(true);
- });
-
- it('Can render markdown content prop (#1259)', async () => {
- const html = await fixture.readFile('/content/index.html');
- const $ = cheerio.load(html);
-
- // test Markdown rendered correctly via content prop
- expect($('h1').text()).to.equal('Foo');
- });
-
- it("doesn't occurs TypeError when no elements", async () => {
- const html = await fixture.readFile('/no-elements/index.html');
- // render html without error
- expect(html).to.be.ok;
- });
-
- it('can render nested list correctly', async () => {
- const html = await fixture.readFile('/nested-list/index.html');
- const $ = cheerio.load(html);
- /**
- * - list
- * - list
- */
- expect($('#target > ul > li').children()).to.have.lengthOf(1);
- expect($('#target > ul > li > ul > li').text()).to.equal('nested list');
- /**
- * 1. Hello
- * 1. nested hello
- */
- expect($('#target > ol > li').children()).to.have.lengthOf(1);
- expect($('#target > ol > li > ol > li').text()).to.equal('nested hello');
- });
-
- it('Escapes HTML tags in code blocks', async () => {
- const html = await fixture.readFile('/code-in-md/index.html');
- const $ = cheerio.load(html);
-
- expect($('code').eq(0).html()).to.equal('&lt;script&gt;');
- expect($('blockquote').length).to.equal(1);
- expect($('code').eq(1).html()).to.equal('&lt;/script&gt;');
- expect($('pre').html()).to.contain('&gt;This should also work without any problems.&lt;');
- });
-
- it('Generate the right props for the layout', async () => {
- const html = await fixture.readFile('/layout-props/index.html');
- const $ = cheerio.load(html);
-
- expect($('#title').text()).to.equal('Hello world!');
- expect($('#url').text()).to.equal('/layout-props');
- expect($('#file').text()).to.match(/.*\/layout-props.md$/);
- });
-});
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-plugins/add-classes.mjs b/packages/markdown/component/test/fixtures/astro-markdown-plugins/add-classes.mjs
deleted file mode 100644
index 39acabd52..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-plugins/add-classes.mjs
+++ /dev/null
@@ -1,18 +0,0 @@
-import { selectAll } from 'hast-util-select';
-
-export default (additions) => {
- const adders = Object.entries(additions).map(adder);
- return (node) => adders.forEach((a) => a(node));
-};
-
-const adder = ([selector, className]) => {
- const writer = write(className);
- return (node) => selectAll(selector, node).forEach(writer);
-};
-
-const write =
- (className) =>
- ({ properties }) => {
- if (!properties.className) properties.className = className;
- else properties.className += ` ${className}`;
- };
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-plugins/astro.config.mjs b/packages/markdown/component/test/fixtures/astro-markdown-plugins/astro.config.mjs
deleted file mode 100644
index 08916b1fe..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-plugins/astro.config.mjs
+++ /dev/null
@@ -1,7 +0,0 @@
-import { defineConfig } from 'astro/config';
-import preact from '@astrojs/preact';
-
-// https://astro.build/config
-export default defineConfig({
- integrations: [preact()],
-});
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-plugins/package.json b/packages/markdown/component/test/fixtures/astro-markdown-plugins/package.json
deleted file mode 100644
index 61cfbc161..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-plugins/package.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "name": "@test/astro-markdown-component-astro-markdown-component-plugins",
- "version": "0.0.0",
- "private": true,
- "dependencies": {
- "@astrojs/markdown-component": "workspace:*",
- "@astrojs/preact": "workspace:*",
- "astro": "workspace:*",
- "hast-util-select": "^5.0.2",
- "preact": "^10.15.1",
- "rehype-slug": "^5.0.1"
- }
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-plugins/src/layouts/content.astro b/packages/markdown/component/test/fixtures/astro-markdown-plugins/src/layouts/content.astro
deleted file mode 100644
index 925a243a9..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-plugins/src/layouts/content.astro
+++ /dev/null
@@ -1,10 +0,0 @@
-<html>
- <head>
- <!-- Head Stuff -->
- </head>
- <body>
- <div class="container">
- <slot></slot>
- </div>
- </body>
-</html>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-plugins/src/pages/astro.astro b/packages/markdown/component/test/fixtures/astro-markdown-plugins/src/pages/astro.astro
deleted file mode 100644
index f039638e4..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-plugins/src/pages/astro.astro
+++ /dev/null
@@ -1,10 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-import Layout from '../layouts/content.astro';
----
-
-<Layout>
- <Markdown is:raw>
- # Hello world
- </Markdown>
-</Layout>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/langs/astro.config.mjs b/packages/markdown/component/test/fixtures/astro-markdown-shiki/langs/astro.config.mjs
deleted file mode 100644
index 130596b0c..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/langs/astro.config.mjs
+++ /dev/null
@@ -1,19 +0,0 @@
-const riGrammar = JSON.parse(
- String.raw`{"name":"rinfo","patterns":[{"include":"#lf-rinfo"}],"repository":{"lf-rinfo":{"patterns":[{"include":"#control"},{"include":"#operator"},{"include":"#strings"},{"include":"#number"},{"include":"#comment"},{"include":"#literal"}]},"control":{"patterns":[{"name":"keyword.control.ri","match":"\\b(si|mientras|repetir)\\b"},{"name":"keyword.other.ri","match":"\\b(programa|robots|areas|variables|comenzar|fin)\\b"},{"name":"support.function.other.ri","match":"\\b(tomarFlor|HayFlorEnLaBolsa|HayFlorEnLaEsquina|depositarFlor|HayPapelEnLaBolsa|HayPapelEnLaEsquina|tomarPapel|depositarPapel)\\b"}]},"operator":{"comment":"Captures operators and also puts them in different sub-groups that further describe them","patterns":[{"match":"\\+|-|\\*|/","name":"keyword.operator.arithmetic.ri"},{"match":"<|>|<=|>=|=|<>|!=","name":"keyword.operator.comparison.ri"},{"match":"\\b(Pos|Informar|Leer|Iniciar|AsignarArea|AreaC)\\b","name":"support.function.arithmetic.ri"},{"match":":=","name":"keyword.operator.assign.ri"},{"match":"(&|~)","name":"support.function.logical.ri"}]},"strings":{"name":"string.quoted.double.ri","beginCaptures":{"0":{"name":"string.quoted.double.begin.ri"}},"endCaptures":{"0":{"name":"string.quoted.double.end.ri"}},"begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.ri","match":"\\\\."}]},"comment":{"patterns":[{"name":"comment.block.ri","begin":"{","end":"}","patterns":[{"include":"#comment"}]}]},"literal":{"patterns":[{"name":"constant.language.ri","match":"\\b(verdadero|falso|boolean|numero)\\b"}]},"number":{"patterns":[{"comment":"Captures decimal numbers, with the negative sign being considered an operator","match":"(-)?(?:((?:\\b\\d+(?:\\.\\d*)?|\\.\\d+)(?:\\b|e-?\\d+\\b)%?)|(\\$[0-9]+\\b))","captures":{"1":{"name":"keyword.operator.arithmetic.ri"},"2":{"name":"constant.numeric.decimal.ri"},"3":{"name":"constant.numeric.hex.ri"}}}]}},"scopeName":"source.rinfo"}`
-);
-
-export default {
- markdown: {
- syntaxHighlight: 'shiki',
- shikiConfig: {
- langs: [
- {
- id: 'rinfo',
- scopeName: 'source.rinfo',
- grammar: riGrammar,
- aliases: ['ri'],
- },
- ],
- },
- },
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/langs/package.json b/packages/markdown/component/test/fixtures/astro-markdown-shiki/langs/package.json
deleted file mode 100644
index 98e1b2806..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/langs/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "@test/astro-markdown-component-astro-markdown-shiki-langs",
- "version": "0.0.0",
- "private": true,
- "dependencies": {
- "astro": "workspace:*",
- "@astrojs/markdown-component": "workspace:*"
- }
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/langs/src/layouts/content.astro b/packages/markdown/component/test/fixtures/astro-markdown-shiki/langs/src/layouts/content.astro
deleted file mode 100644
index 925a243a9..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/langs/src/layouts/content.astro
+++ /dev/null
@@ -1,10 +0,0 @@
-<html>
- <head>
- <!-- Head Stuff -->
- </head>
- <body>
- <div class="container">
- <slot></slot>
- </div>
- </body>
-</html>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/langs/src/pages/astro.astro b/packages/markdown/component/test/fixtures/astro-markdown-shiki/langs/src/pages/astro.astro
deleted file mode 100644
index 68b22b7e8..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/langs/src/pages/astro.astro
+++ /dev/null
@@ -1,31 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-import Layout from '../layouts/content.astro';
----
-
-<Layout>
- <Markdown is:raw>
- # Hello world
-
- ```rinfo
- programa Rinfo
- areas
- ciuadad: AreaC(1,1,100,100)
- robots
- robot robot1
- comenzar
- Informar(PosAv, PosCa)
- fin
- variables
- Rinfo: robot1
- comenzar
- AsignarArea(Rinfo, ciudad)
- Iniciar(Rinfo, 1, 1)
- fin
- ```
-
- ```unknown
- This language does not exist
- ```
- </Markdown>
-</Layout>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/normal/astro.config.mjs b/packages/markdown/component/test/fixtures/astro-markdown-shiki/normal/astro.config.mjs
deleted file mode 100644
index acd4c5abc..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/normal/astro.config.mjs
+++ /dev/null
@@ -1,5 +0,0 @@
-export default {
- markdown: {
- syntaxHighlight: 'shiki',
- },
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/normal/package.json b/packages/markdown/component/test/fixtures/astro-markdown-shiki/normal/package.json
deleted file mode 100644
index 21082f4ee..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/normal/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "@test/astro-markdown-component-astro-markdown-shiki-normal",
- "version": "0.0.0",
- "private": true,
- "dependencies": {
- "astro": "workspace:*",
- "@astrojs/markdown-component": "workspace:*"
- }
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/normal/src/layouts/content.astro b/packages/markdown/component/test/fixtures/astro-markdown-shiki/normal/src/layouts/content.astro
deleted file mode 100644
index 925a243a9..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/normal/src/layouts/content.astro
+++ /dev/null
@@ -1,10 +0,0 @@
-<html>
- <head>
- <!-- Head Stuff -->
- </head>
- <body>
- <div class="container">
- <slot></slot>
- </div>
- </body>
-</html>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/normal/src/pages/astro.astro b/packages/markdown/component/test/fixtures/astro-markdown-shiki/normal/src/pages/astro.astro
deleted file mode 100644
index 473b21dc1..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/normal/src/pages/astro.astro
+++ /dev/null
@@ -1,18 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-import Layout from '../layouts/content.astro';
----
-
-<Layout>
- <Markdown is:raw>
- # Hello world
-
- ```
- plaintext
- ```
-
- ```js
- console.log('JavaScript')
- ```
- </Markdown>
-</Layout>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/package.json b/packages/markdown/component/test/fixtures/astro-markdown-shiki/package.json
deleted file mode 100644
index e25b78c20..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "@test/astro-markdown-component-astro-markdown-component-shiki",
- "version": "0.0.0",
- "private": true,
- "dependencies": {
- "astro": "workspace:*",
- "@astrojs/markdown-component": "workspace:*"
- }
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-custom/astro.config.mjs b/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-custom/astro.config.mjs
deleted file mode 100644
index 23617bbf4..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-custom/astro.config.mjs
+++ /dev/null
@@ -1,10 +0,0 @@
-const serendipity = JSON.parse(
- String.raw`{"name":"Serendipity Morning","type":"light","colors":{"activityBar.activeBorder":"#4E5377","activityBar.background":"#FDFDFE","activityBar.dropBorder":"#D8DAE4","activityBar.foreground":"#4E5377","activityBar.inactiveForeground":"#5F6488","activityBarBadge.background":"#F19A8E","activityBarBadge.foreground":"#FDFDFE","badge.background":"#F19A8E","badge.foreground":"#FDFDFE","banner.background":"#F1F1F4","banner.foreground":"#4E5377","banner.iconForeground":"#5F6488","breadcrumb.activeSelectionForeground":"#F19A8E","breadcrumb.background":"#FDFDFE","breadcrumb.focusForeground":"#5F6488","breadcrumb.foreground":"#8388AD","breadcrumbPicker.background":"#F1F1F4","button.background":"#F19A8E","button.foreground":"#FDFDFE","button.hoverBackground":"#F19A8Ee6","button.secondaryBackground":"#F1F1F4","button.secondaryForeground":"#4E5377","button.secondaryHoverBackground":"#D8DAE4","charts.lines":"#5F6488","charts.foreground":"#4E5377","charts.blue":"#7397DE","charts.green":"#3788BE","charts.orange":"#F19A8E","charts.purple":"#77AAB3","charts.red":"#D26A5D","charts.yellow":"#886CDB","checkbox.background":"#F1F1F4","checkbox.border":"#6e6a8614","checkbox.foreground":"#4E5377","debugExceptionWidget.background":"#F1F1F4","debugExceptionWidget.border":"#6e6a8614","debugIcon.breakpointCurrentStackframeForeground":"#5F6488","debugIcon.breakpointDisabledForeground":"#5F6488","debugIcon.breakpointForeground":"#5F6488","debugIcon.breakpointStackframeForeground":"#5F6488","debugIcon.breakpointUnverifiedForeground":"#5F6488","debugIcon.continueForeground":"#5F6488","debugIcon.disconnectForeground":"#5F6488","debugIcon.pauseForeground":"#5F6488","debugIcon.restartForeground":"#5F6488","debugIcon.startForeground":"#5F6488","debugIcon.stepBackForeground":"#5F6488","debugIcon.stepIntoForeground":"#5F6488","debugIcon.stepOutForeground":"#5F6488","debugIcon.stepOverForeground":"#5F6488","debugIcon.stopForeground":"#D26A5D","debugToolBar.background":"#F1F1F4","debugToolBar.border":"#D8DAE4","descriptionForeground":"#5F6488","diffEditor.border":"#D8DAE4","diffEditor.diagonalFill":"#6e6a8626","diffEditor.insertedTextBackground":"#7397DE14","diffEditor.insertedTextBorder":"#7397DE80","diffEditor.removedTextBackground":"#D26A5D14","diffEditor.removedTextBorder":"#D26A5D80","dropdown.background":"#F1F1F4","dropdown.border":"#6e6a8614","dropdown.foreground":"#4E5377","dropdown.listBackground":"#F1F1F4","editor.background":"#FDFDFE","editor.findMatchBackground":"#6e6a8626","editor.findMatchHighlightBackground":"#6e6a8626","editor.findRangeHighlightBackground":"#6e6a8626","editor.findRangeHighlightBorder":"#0000","editor.focusedStackFrameHighlightBackground":"#6e6a8614","editor.foldBackground":"#F1F1F4","editor.foreground":"#4E5377","editor.hoverHighlightBackground":"#0000","editor.inactiveSelectionBackground":"#6e6a860d","editor.inlineValuesBackground":"#0000","editor.inlineValuesForeground":"#5F6488","editor.lineHighlightBackground":"#6e6a860d","editor.lineHighlightBorder":"#0000","editor.linkedEditingBackground":"#F1F1F4","editor.rangeHighlightBackground":"#6e6a860d","editor.rangeHighlightBorder":"#0000","editor.selectionBackground":"#6e6a8614","editor.selectionForeground":"#4E5377","editor.selectionHighlightBackground":"#6e6a8614","editor.selectionHighlightBorder":"#0000","editor.snippetFinalTabstopHighlightBackground":"#6e6a8614","editor.snippetFinalTabstopHighlightBorder":"#F1F1F4","editor.snippetTabstopHighlightBackground":"#6e6a8614","editor.snippetTabstopHighlightBorder":"#F1F1F4","editor.stackFrameHighlightBackground":"#6e6a8614","editor.symbolHighlightBackground":"#6e6a8614","editor.symbolHighlightBorder":"#0000","editor.wordHighlightBackground":"#6e6a8614","editor.wordHighlightBorder":"#0000","editor.wordHighlightStrongBackground":"#6e6a8614","editor.wordHighlightStrongBorder":"#6e6a8614","editorBracketHighlight.foreground1":"#D26A5D80","editorBracketHighlight.foreground2":"#3788BE80","editorBracketHighlight.foreground3":"#886CDB80","editorBracketHighlight.foreground4":"#7397DE80","editorBracketHighlight.foreground5":"#F19A8E80","editorBracketHighlight.foreground6":"#77AAB380","editorBracketMatch.background":"#0000","editorBracketMatch.border":"#5F6488","editorBracketPairGuide.activeBackground1":"#3788BE","editorBracketPairGuide.activeBackground2":"#F19A8E","editorBracketPairGuide.activeBackground3":"#77AAB3","editorBracketPairGuide.activeBackground4":"#7397DE","editorBracketPairGuide.activeBackground5":"#886CDB","editorBracketPairGuide.activeBackground6":"#D26A5D","editorBracketPairGuide.background1":"#3788BE80","editorBracketPairGuide.background2":"#F19A8E80","editorBracketPairGuide.background3":"#77AAB380","editorBracketPairGuide.background4":"#7397DE80","editorBracketPairGuide.background5":"#886CDB80","editorBracketPairGuide.background6":"#D26A5D80","editorCodeLens.foreground":"#F19A8E","editorCursor.background":"#4E5377","editorCursor.foreground":"#8388AD","editorError.border":"#0000","editorError.foreground":"#D26A5D","editorGhostText.foreground":"#5F6488","editorGroup.border":"#0000","editorGroup.dropBackground":"#F1F1F4","editorGroup.emptyBackground":"#0000","editorGroup.focusedEmptyBorder":"#0000","editorGroupHeader.noTabsBackground":"#0000","editorGroupHeader.tabsBackground":"#0000","editorGroupHeader.tabsBorder":"#0000","editorGutter.addedBackground":"#7397DE","editorGutter.background":"#0000","editorGutter.commentRangeForeground":"#5F6488","editorGutter.deletedBackground":"#D26A5D","editorGutter.foldingControlForeground":"#77AAB3","editorGutter.modifiedBackground":"#F19A8E","editorHint.border":"#0000","editorHint.foreground":"#5F6488","editorHoverWidget.background":"#F1F1F4","editorHoverWidget.border":"#8388AD80","editorHoverWidget.foreground":"#5F6488","editorHoverWidget.highlightForeground":"#4E5377","editorHoverWidget.statusBarBackground":"#0000","editorIndentGuide.activeBackground":"#8388AD","editorIndentGuide.background":"#6e6a8626","editorInfo.border":"#D8DAE4","editorInfo.foreground":"#7397DE","editorInlayHint.background":"#D8DAE4","editorInlayHint.foreground":"#5F6488","editorInlayHint.parameterBackground":"#D8DAE4","editorInlayHint.parameterForeground":"#77AAB3","editorInlayHint.typeBackground":"#D8DAE4","editorInlayHint.typeForeground":"#7397DE","editorLightBulb.foreground":"#3788BE","editorLightBulbAutoFix.foreground":"#F19A8E","editorLineNumber.activeForeground":"#4E5377","editorLineNumber.foreground":"#5F6488","editorLink.activeForeground":"#F19A8E","editorMarkerNavigation.background":"#F1F1F4","editorMarkerNavigationError.background":"#F1F1F4","editorMarkerNavigationInfo.background":"#F1F1F4","editorMarkerNavigationWarning.background":"#F1F1F4","editorOverviewRuler.addedForeground":"#7397DE80","editorOverviewRuler.background":"#FDFDFE","editorOverviewRuler.border":"#6e6a8626","editorOverviewRuler.bracketMatchForeground":"#5F6488","editorOverviewRuler.commonContentForeground":"#6e6a860d","editorOverviewRuler.currentContentForeground":"#6e6a8614","editorOverviewRuler.deletedForeground":"#D26A5D80","editorOverviewRuler.errorForeground":"#D26A5D80","editorOverviewRuler.findMatchForeground":"#6e6a8626","editorOverviewRuler.incomingContentForeground":"#77AAB380","editorOverviewRuler.infoForeground":"#7397DE80","editorOverviewRuler.modifiedForeground":"#F19A8E80","editorOverviewRuler.rangeHighlightForeground":"#6e6a8626","editorOverviewRuler.selectionHighlightForeground":"#6e6a8626","editorOverviewRuler.warningForeground":"#886CDB80","editorOverviewRuler.wordHighlightForeground":"#6e6a8614","editorOverviewRuler.wordHighlightStrongForeground":"#6e6a8626","editorPane.background":"#0000","editorRuler.foreground":"#6e6a8626","editorSuggestWidget.background":"#F1F1F4","editorSuggestWidget.border":"#0000","editorSuggestWidget.focusHighlightForeground":"#F19A8E","editorSuggestWidget.foreground":"#5F6488","editorSuggestWidget.highlightForeground":"#F19A8E","editorSuggestWidget.selectedBackground":"#6e6a8614","editorSuggestWidget.selectedForeground":"#4E5377","editorSuggestWidget.selectedIconForeground":"#4E5377","editorUnnecessaryCode.border":"#0000","editorUnnecessaryCode.opacity":"#00000080","editorWarning.border":"#0000","editorWarning.foreground":"#886CDB","editorWhitespace.foreground":"#8388AD","editorWidget.background":"#F1F1F4","editorWidget.border":"#D8DAE4","editorWidget.foreground":"#5F6488","editorWidget.resizeBorder":"#8388AD","errorForeground":"#D26A5D","extensionBadge.remoteBackground":"#77AAB3","extensionBadge.remoteForeground":"#FDFDFE","extensionButton.prominentBackground":"#F19A8E","extensionButton.prominentForeground":"#FDFDFE","extensionButton.prominentHoverBackground":"#F19A8Ee6","extensionIcon.starForeground":"#F19A8E","extensionIcon.verifiedForeground":"#77AAB3","focusBorder":"#6e6a8614","foreground":"#4E5377","gitDecoration.addedResourceForeground":"#7397DE","gitDecoration.conflictingResourceForeground":"#D26A5D","gitDecoration.deletedResourceForeground":"#5F6488","gitDecoration.ignoredResourceForeground":"#8388AD","gitDecoration.modifiedResourceForeground":"#F19A8E","gitDecoration.renamedResourceForeground":"#3788BE","gitDecoration.stageDeletedResourceForeground":"#D26A5D","gitDecoration.stageModifiedResourceForeground":"#77AAB3","gitDecoration.submoduleResourceForeground":"#886CDB","gitDecoration.untrackedResourceForeground":"#886CDB","icon.foreground":"#5F6488","input.background":"#D8DAE480","input.border":"#6e6a8614","input.foreground":"#4E5377","input.placeholderForeground":"#5F6488","inputOption.activeBackground":"#F19A8E","inputOption.activeBorder":"#0000","inputOption.activeForeground":"#FDFDFE","inputValidation.errorBackground":"#0000","inputValidation.errorBorder":"#0000","inputValidation.errorForeground":"#D26A5D","inputValidation.infoBackground":"#0000","inputValidation.infoBorder":"#0000","inputValidation.infoForeground":"#7397DE","inputValidation.warningBackground":"#0000","inputValidation.warningBorder":"#0000","inputValidation.warningForeground":"#7397DE80","keybindingLabel.background":"#D8DAE4","keybindingLabel.border":"#6e6a8626","keybindingLabel.bottomBorder":"#6e6a8626","keybindingLabel.foreground":"#77AAB3","keybindingTable.headerBackground":"#D8DAE4","keybindingTable.rowsBackground":"#F1F1F4","list.activeSelectionBackground":"#6e6a8614","list.activeSelectionForeground":"#4E5377","list.activeSelectionIconForeground":"#4E5377","list.deemphasizedForeground":"#5F6488","list.dropBackground":"#F1F1F4","list.errorForeground":"#D26A5D","list.filterMatchBackground":"#F1F1F4","list.filterMatchBorder":"#F19A8E","list.focusBackground":"#6e6a8626","list.focusForeground":"#4E5377","list.focusOutline":"#6e6a8614","list.highlightForeground":"#F19A8E","list.hoverBackground":"#6e6a860d","list.hoverForeground":"#4E5377","list.inactiveFocusBackground":"#6e6a860d","list.inactiveSelectionBackground":"#F1F1F4","list.inactiveSelectionForeground":"#4E5377","list.inactiveSelectionIconForeground":"#5F6488","list.invalidItemForeground":"#D26A5D","list.warningForeground":"#886CDB","listFilterWidget.background":"#F1F1F4","listFilterWidget.noMatchesOutline":"#D26A5D","listFilterWidget.outline":"#D8DAE4","menu.background":"#F1F1F4","menu.border":"#6e6a860d","menu.foreground":"#4E5377","menu.selectionBackground":"#6e6a8614","menu.selectionBorder":"#D8DAE4","menu.selectionForeground":"#4E5377","menu.separatorBackground":"#4E5377","menubar.selectionBackground":"#6e6a8614","menubar.selectionBorder":"#6e6a860d","menubar.selectionForeground":"#4E5377","merge.border":"#D8DAE4","merge.commonContentBackground":"#6e6a8614","merge.commonHeaderBackground":"#6e6a8614","merge.currentContentBackground":"#886CDB80","merge.currentHeaderBackground":"#886CDB80","merge.incomingContentBackground":"#7397DE80","merge.incomingHeaderBackground":"#7397DE80","minimap.background":"#F1F1F4","minimap.errorHighlight":"#D26A5D80","minimap.findMatchHighlight":"#6e6a8614","minimap.selectionHighlight":"#6e6a8614","minimap.warningHighlight":"#886CDB80","minimapGutter.addedBackground":"#7397DE","minimapGutter.deletedBackground":"#D26A5D","minimapGutter.modifiedBackground":"#F19A8E","minimapSlider.activeBackground":"#6e6a8626","minimapSlider.background":"#6e6a8614","minimapSlider.hoverBackground":"#6e6a8614","notificationCenter.border":"#6e6a8614","notificationCenterHeader.background":"#F1F1F4","notificationCenterHeader.foreground":"#5F6488","notificationLink.foreground":"#77AAB3","notifications.background":"#F1F1F4","notifications.border":"#6e6a8614","notifications.foreground":"#4E5377","notificationsErrorIcon.foreground":"#D26A5D","notificationsInfoIcon.foreground":"#7397DE","notificationsWarningIcon.foreground":"#886CDB","notificationToast.border":"#6e6a8614","panel.background":"#F1F1F4","panel.border":"#0000","panel.dropBorder":"#D8DAE4","panelInput.border":"#F1F1F4","panelSection.dropBackground":"#6e6a8614","panelSectionHeader.background":"#F1F1F4","panelSectionHeader.foreground":"#4E5377","panelTitle.activeBorder":"#6e6a8626","panelTitle.activeForeground":"#4E5377","panelTitle.inactiveForeground":"#5F6488","peekView.border":"#D8DAE4","peekViewEditor.background":"#F1F1F4","peekViewEditor.matchHighlightBackground":"#6e6a8626","peekViewResult.background":"#F1F1F4","peekViewResult.fileForeground":"#5F6488","peekViewResult.lineForeground":"#5F6488","peekViewResult.matchHighlightBackground":"#6e6a8626","peekViewResult.selectionBackground":"#6e6a8614","peekViewResult.selectionForeground":"#4E5377","peekViewTitle.background":"#D8DAE4","peekViewTitleDescription.foreground":"#5F6488","pickerGroup.border":"#6e6a8626","pickerGroup.foreground":"#77AAB3","ports.iconRunningProcessForeground":"#F19A8E","problemsErrorIcon.foreground":"#D26A5D","problemsInfoIcon.foreground":"#7397DE","problemsWarningIcon.foreground":"#886CDB","progressBar.background":"#F19A8E","quickInput.background":"#F1F1F4","quickInput.foreground":"#5F6488","quickInputList.focusBackground":"#6e6a8614","quickInputList.focusForeground":"#4E5377","quickInputList.focusIconForeground":"#4E5377","scrollbar.shadow":"#0000","scrollbarSlider.activeBackground":"#6e6a8626","scrollbarSlider.background":"#6e6a860d","scrollbarSlider.hoverBackground":"#6e6a8614","searchEditor.findMatchBackground":"#6e6a8614","selection.background":"#6e6a8626","settings.focusedRowBackground":"#F1F1F4","settings.headerForeground":"#4E5377","settings.modifiedItemIndicator":"#F19A8E","settings.focusedRowBorder":"#6e6a8614","settings.rowHoverBackground":"#F1F1F4","sideBar.background":"#FDFDFE","sideBar.dropBackground":"#F1F1F4","sideBar.foreground":"#5F6488","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#6e6a8614","statusBar.background":"#FDFDFE","statusBar.debuggingBackground":"#77AAB3","statusBar.debuggingForeground":"#FDFDFE","statusBar.foreground":"#5F6488","statusBar.noFolderBackground":"#FDFDFE","statusBar.noFolderForeground":"#5F6488","statusBarItem.activeBackground":"#6e6a8626","statusBarItem.hoverBackground":"#6e6a8614","statusBarItem.prominentBackground":"#D8DAE4","statusBarItem.prominentForeground":"#4E5377","statusBarItem.prominentHoverBackground":"#6e6a8614","statusBarItem.remoteBackground":"#FDFDFE","statusBarItem.remoteForeground":"#886CDB","statusBarItem.errorBackground":"#FDFDFE","statusBarItem.errorForeground":"#D26A5D","symbolIcon.arrayForeground":"#5F6488","symbolIcon.classForeground":"#5F6488","symbolIcon.colorForeground":"#5F6488","symbolIcon.constantForeground":"#5F6488","symbolIcon.constructorForeground":"#5F6488","symbolIcon.enumeratorForeground":"#5F6488","symbolIcon.enumeratorMemberForeground":"#5F6488","symbolIcon.eventForeground":"#5F6488","symbolIcon.fieldForeground":"#5F6488","symbolIcon.fileForeground":"#5F6488","symbolIcon.folderForeground":"#5F6488","symbolIcon.functionForeground":"#5F6488","symbolIcon.interfaceForeground":"#5F6488","symbolIcon.keyForeground":"#5F6488","symbolIcon.keywordForeground":"#5F6488","symbolIcon.methodForeground":"#5F6488","symbolIcon.moduleForeground":"#5F6488","symbolIcon.namespaceForeground":"#5F6488","symbolIcon.nullForeground":"#5F6488","symbolIcon.numberForeground":"#5F6488","symbolIcon.objectForeground":"#5F6488","symbolIcon.operatorForeground":"#5F6488","symbolIcon.packageForeground":"#5F6488","symbolIcon.propertyForeground":"#5F6488","symbolIcon.referenceForeground":"#5F6488","symbolIcon.snippetForeground":"#5F6488","symbolIcon.stringForeground":"#5F6488","symbolIcon.structForeground":"#5F6488","symbolIcon.textForeground":"#5F6488","symbolIcon.typeParameterForeground":"#5F6488","symbolIcon.unitForeground":"#5F6488","symbolIcon.variableForeground":"#5F6488","tab.activeBackground":"#6e6a860d","tab.activeForeground":"#4E5377","tab.activeModifiedBorder":"#7397DE","tab.border":"#0000","tab.hoverBackground":"#6e6a8614","tab.inactiveBackground":"#0000","tab.inactiveForeground":"#5F6488","tab.inactiveModifiedBorder":"#7397DE80","tab.lastPinnedBorder":"#8388AD","tab.unfocusedActiveBackground":"#0000","tab.unfocusedHoverBackground":"#0000","tab.unfocusedInactiveBackground":"#0000","tab.unfocusedInactiveModifiedBorder":"#7397DE80","terminal.ansiWhite":"#4E5377","terminal.ansiBrightWhite":"#4E5377","terminal.ansiBlack":"#D8DAE4","terminal.ansiBrightBlack":"#5F6488","terminal.ansiBlue":"#7397DE","terminal.ansiBrightBlue":"#7397DE","terminal.ansiCyan":"#F19A8E","terminal.ansiBrightCyan":"#F19A8E","terminal.ansiGreen":"#3788BE","terminal.ansiBrightGreen":"#3788BE","terminal.ansiMagenta":"#77AAB3","terminal.ansiBrightMagenta":"#77AAB3","terminal.ansiRed":"#D26A5D","terminal.ansiBrightRed":"#D26A5D","terminal.ansiBrightYellow":"#886CDB","terminal.ansiYellow":"#886CDB","terminal.dropBackground":"#6e6a8614","terminal.foreground":"#4E5377","terminal.selectionBackground":"#6e6a8614","terminal.tab.activeBorder":"#4E5377","terminalCursor.background":"#4E5377","terminalCursor.foreground":"#8388AD","textBlockQuote.background":"#F1F1F4","textBlockQuote.border":"#6e6a8614","textCodeBlock.background":"#F1F1F4","textLink.activeForeground":"#77AAB3e6","textLink.foreground":"#77AAB3","textPreformat.foreground":"#886CDB","textSeparator.foreground":"#5F6488","titleBar.activeBackground":"#FDFDFE","titleBar.activeForeground":"#5F6488","titleBar.inactiveBackground":"#F1F1F4","titleBar.inactiveForeground":"#5F6488","toolbar.activeBackground":"#6e6a8626","toolbar.hoverBackground":"#6e6a8614","tree.indentGuidesStroke":"#5F6488","walkThrough.embeddedEditorBackground":"#FDFDFE","welcomePage.background":"#FDFDFE","welcomePage.buttonBackground":"#F1F1F4","welcomePage.buttonHoverBackground":"#D8DAE4","widget.shadow":"#D8DAE44d","window.activeBorder":"#F1F1F4","window.inactiveBorder":"#F1F1F4"},"tokenColors":[{"scope":["comment"],"settings":{"foreground":"#8388AD","fontStyle":"italic"}},{"scope":["constant"],"settings":{"foreground":"#3788BE"}},{"scope":["constant.numeric","constant.language","constant.character.escape"],"settings":{"foreground":"#F19A8E"}},{"scope":["entity.name"],"settings":{"foreground":"#F19A8E"}},{"scope":["entity.name.section","entity.name.tag","entity.name.namespace","entity.name.type"],"settings":{"foreground":"#7397DE"}},{"scope":["entity.other.attribute-name","entity.other.inherited-class"],"settings":{"foreground":"#77AAB3","fontStyle":"italic"}},{"scope":["invalid"],"settings":{"foreground":"#D26A5D"}},{"scope":["invalid.deprecated"],"settings":{"foreground":"#5F6488"}},{"scope":["keyword"],"settings":{"foreground":"#3788BE"}},{"scope":["meta.tag","meta.brace"],"settings":{"foreground":"#4E5377"}},{"scope":["meta.import","meta.export"],"settings":{"foreground":"#3788BE"}},{"scope":"meta.directive.vue","settings":{"foreground":"#77AAB3","fontStyle":"italic"}},{"scope":"meta.property-name.css","settings":{"foreground":"#7397DE"}},{"scope":"meta.property-value.css","settings":{"foreground":"#886CDB"}},{"scope":"meta.tag.other.html","settings":{"foreground":"#5F6488"}},{"scope":["punctuation"],"settings":{"foreground":"#5F6488"}},{"scope":["punctuation.accessor"],"settings":{"foreground":"#3788BE"}},{"scope":["punctuation.definition.string"],"settings":{"foreground":"#886CDB"}},{"scope":["punctuation.definition.tag"],"settings":{"foreground":"#8388AD"}},{"scope":["storage.type","storage.modifier"],"settings":{"foreground":"#3788BE"}},{"scope":["string"],"settings":{"foreground":"#886CDB"}},{"scope":["support"],"settings":{"foreground":"#7397DE"}},{"scope":["support.constant"],"settings":{"foreground":"#886CDB"}},{"scope":["support.function"],"settings":{"foreground":"#D26A5D","fontStyle":"italic"}},{"scope":["variable"],"settings":{"foreground":"#F19A8E","fontStyle":"italic"}},{"scope":["variable.other","variable.language","variable.function","variable.argument"],"settings":{"foreground":"#4E5377"}},{"scope":["variable.parameter"],"settings":{"foreground":"#77AAB3"}}]}`
-);
-
-export default {
- markdown: {
- syntaxHighlight: 'shiki',
- shikiConfig: { theme: serendipity },
- },
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-custom/package.json b/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-custom/package.json
deleted file mode 100644
index f42a39c06..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-custom/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "@test/astro-markdown-component-astro-markdown-shiki-themes-custom",
- "version": "0.0.0",
- "private": true,
- "dependencies": {
- "astro": "workspace:*",
- "@astrojs/markdown-component": "workspace:*"
- }
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-custom/src/layouts/content.astro b/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-custom/src/layouts/content.astro
deleted file mode 100644
index 925a243a9..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-custom/src/layouts/content.astro
+++ /dev/null
@@ -1,10 +0,0 @@
-<html>
- <head>
- <!-- Head Stuff -->
- </head>
- <body>
- <div class="container">
- <slot></slot>
- </div>
- </body>
-</html>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-custom/src/pages/astro.astro b/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-custom/src/pages/astro.astro
deleted file mode 100644
index aae5ddbba..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-custom/src/pages/astro.astro
+++ /dev/null
@@ -1,14 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-import Layout from '../layouts/content.astro';
----
-
-<Layout>
- <Markdown is:raw>
- # Hello world
-
- ```js
- console.log('JavaScript')
- ```
- </Markdown>
-</Layout>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/astro.config.mjs b/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/astro.config.mjs
deleted file mode 100644
index 7ddfeeb16..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/astro.config.mjs
+++ /dev/null
@@ -1,6 +0,0 @@
-export default {
- markdown: {
- syntaxHighlight: 'shiki',
- shikiConfig: { theme: 'github-light' },
- },
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/package.json b/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/package.json
deleted file mode 100644
index d4e1c515a..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "@test/astro-markdown-component-astro-markdown-shiki-themes-integrated",
- "version": "0.0.0",
- "private": true,
- "dependencies": {
- "astro": "workspace:*",
- "@astrojs/markdown-component": "workspace:*"
- }
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/src/layouts/content.astro b/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/src/layouts/content.astro
deleted file mode 100644
index 925a243a9..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/src/layouts/content.astro
+++ /dev/null
@@ -1,10 +0,0 @@
-<html>
- <head>
- <!-- Head Stuff -->
- </head>
- <body>
- <div class="container">
- <slot></slot>
- </div>
- </body>
-</html>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/src/pages/astro.astro b/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/src/pages/astro.astro
deleted file mode 100644
index aae5ddbba..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/src/pages/astro.astro
+++ /dev/null
@@ -1,14 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-import Layout from '../layouts/content.astro';
----
-
-<Layout>
- <Markdown is:raw>
- # Hello world
-
- ```js
- console.log('JavaScript')
- ```
- </Markdown>
-</Layout>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/src/pages/index.md b/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/src/pages/index.md
deleted file mode 100644
index a75170537..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/themes-integrated/src/pages/index.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-layout: ../layouts/content.astro
----
-
-# Hello world
-
-```yaml
-apiVersion: v3
-kind: Pod
-metadata:
- name: rss-site
- labels:
- app: web
-spec:
- containers:
- - name: front-end
- image: nginx
- ports:
- - containerPort: 80
- - name: rss-reader
- image: nickchase/rss-php-nginx:v1
- ports:
- - containerPort: 88
-```
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-false/astro.config.mjs b/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-false/astro.config.mjs
deleted file mode 100644
index e95742529..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-false/astro.config.mjs
+++ /dev/null
@@ -1,6 +0,0 @@
-export default {
- markdown: {
- syntaxHighlight: 'shiki',
- shikiConfig: { wrap: false },
- },
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-false/package.json b/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-false/package.json
deleted file mode 100644
index 9e593db67..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-false/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "@test/astro-markdown-component-astro-markdown-shiki-wrap-false",
- "version": "0.0.0",
- "private": true,
- "dependencies": {
- "astro": "workspace:*",
- "@astrojs/markdown-component": "workspace:*"
- }
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-false/src/layouts/content.astro b/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-false/src/layouts/content.astro
deleted file mode 100644
index 925a243a9..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-false/src/layouts/content.astro
+++ /dev/null
@@ -1,10 +0,0 @@
-<html>
- <head>
- <!-- Head Stuff -->
- </head>
- <body>
- <div class="container">
- <slot></slot>
- </div>
- </body>
-</html>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-false/src/pages/astro.astro b/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-false/src/pages/astro.astro
deleted file mode 100644
index 473b21dc1..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-false/src/pages/astro.astro
+++ /dev/null
@@ -1,18 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-import Layout from '../layouts/content.astro';
----
-
-<Layout>
- <Markdown is:raw>
- # Hello world
-
- ```
- plaintext
- ```
-
- ```js
- console.log('JavaScript')
- ```
- </Markdown>
-</Layout>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-null/astro.config.mjs b/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-null/astro.config.mjs
deleted file mode 100644
index b1fa06335..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-null/astro.config.mjs
+++ /dev/null
@@ -1,6 +0,0 @@
-export default {
- markdown: {
- syntaxHighlight: 'shiki',
- shikiConfig: { wrap: null },
- },
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-null/package.json b/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-null/package.json
deleted file mode 100644
index a32cc28b6..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-null/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "@test/astro-markdown-component-astro-markdown-shiki-wrap-null",
- "version": "0.0.0",
- "private": true,
- "dependencies": {
- "astro": "workspace:*",
- "@astrojs/markdown-component": "workspace:*"
- }
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-null/src/layouts/content.astro b/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-null/src/layouts/content.astro
deleted file mode 100644
index 925a243a9..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-null/src/layouts/content.astro
+++ /dev/null
@@ -1,10 +0,0 @@
-<html>
- <head>
- <!-- Head Stuff -->
- </head>
- <body>
- <div class="container">
- <slot></slot>
- </div>
- </body>
-</html>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-null/src/pages/astro.astro b/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-null/src/pages/astro.astro
deleted file mode 100644
index 473b21dc1..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-null/src/pages/astro.astro
+++ /dev/null
@@ -1,18 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-import Layout from '../layouts/content.astro';
----
-
-<Layout>
- <Markdown is:raw>
- # Hello world
-
- ```
- plaintext
- ```
-
- ```js
- console.log('JavaScript')
- ```
- </Markdown>
-</Layout>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-true/astro.config.mjs b/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-true/astro.config.mjs
deleted file mode 100644
index 0e95f569b..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-true/astro.config.mjs
+++ /dev/null
@@ -1,6 +0,0 @@
-export default {
- markdown: {
- syntaxHighlight: 'shiki',
- shikiConfig: { wrap: true },
- },
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-true/package.json b/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-true/package.json
deleted file mode 100644
index d3440f66f..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-true/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "@test/astro-markdown-component-astro-markdown-shiki-wrap-true",
- "version": "0.0.0",
- "private": true,
- "dependencies": {
- "astro": "workspace:*",
- "@astrojs/markdown-component": "workspace:*"
- }
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-true/src/layouts/content.astro b/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-true/src/layouts/content.astro
deleted file mode 100644
index 925a243a9..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-true/src/layouts/content.astro
+++ /dev/null
@@ -1,10 +0,0 @@
-<html>
- <head>
- <!-- Head Stuff -->
- </head>
- <body>
- <div class="container">
- <slot></slot>
- </div>
- </body>
-</html>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-true/src/pages/astro.astro b/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-true/src/pages/astro.astro
deleted file mode 100644
index 473b21dc1..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown-shiki/wrap-true/src/pages/astro.astro
+++ /dev/null
@@ -1,18 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-import Layout from '../layouts/content.astro';
----
-
-<Layout>
- <Markdown is:raw>
- # Hello world
-
- ```
- plaintext
- ```
-
- ```js
- console.log('JavaScript')
- ```
- </Markdown>
-</Layout>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/astro.config.mjs b/packages/markdown/component/test/fixtures/astro-markdown/astro.config.mjs
deleted file mode 100644
index be33a26cc..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/astro.config.mjs
+++ /dev/null
@@ -1,9 +0,0 @@
-import { defineConfig } from 'astro/config';
-import preact from '@astrojs/preact';
-import svelte from "@astrojs/svelte";
-
-// https://astro.build/config
-export default defineConfig({
- integrations: [preact(), svelte()],
- site: 'https://astro.build/',
-});
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/package.json b/packages/markdown/component/test/fixtures/astro-markdown/package.json
deleted file mode 100644
index fdabe3a03..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/package.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "name": "@test/astro-markdown-component-astro-markdown-component",
- "version": "0.0.0",
- "private": true,
- "dependencies": {
- "@astrojs/markdown-component": "workspace:*",
- "@astrojs/preact": "workspace:*",
- "@astrojs/svelte": "workspace:*",
- "astro": "workspace:*",
- "preact": "^10.15.1",
- "svelte": "^3.59.1"
- }
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/components/Counter.jsx b/packages/markdown/component/test/fixtures/astro-markdown/src/components/Counter.jsx
deleted file mode 100644
index a75f858b5..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/components/Counter.jsx
+++ /dev/null
@@ -1,7 +0,0 @@
-import { h } from 'preact';
-import { useState } from 'preact/hooks';
-
-export default function () {
- const [count, setCount] = useState(0);
- return <button onClick={() => setCount(count + 1)}>{count}</button>;
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/components/Example.jsx b/packages/markdown/component/test/fixtures/astro-markdown/src/components/Example.jsx
deleted file mode 100644
index e1f67ee50..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/components/Example.jsx
+++ /dev/null
@@ -1,5 +0,0 @@
-import { h } from 'preact';
-
-export default function () {
- return <div id="test">Testing</div>;
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/components/Hello.jsx b/packages/markdown/component/test/fixtures/astro-markdown/src/components/Hello.jsx
deleted file mode 100644
index d30dec516..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/components/Hello.jsx
+++ /dev/null
@@ -1,5 +0,0 @@
-import { h } from 'preact';
-
-export default function ({ name }) {
- return <div id="test">Hello {name}</div>;
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/components/SlotComponent.astro b/packages/markdown/component/test/fixtures/astro-markdown/src/components/SlotComponent.astro
deleted file mode 100644
index f0aa9fc1c..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/components/SlotComponent.astro
+++ /dev/null
@@ -1,13 +0,0 @@
-<article>
- <section class="fragmentSlot">
- <slot name="fragmentSlot">❌ Missing content for slot "fragmentSlot"</slot>
- </section>
-
- <section class="pSlot">
- <slot name="pSlot">❌ Missing content for slot "pSlot"</slot>
- </section>
-
- <section class="defaultSlot">
- <slot>❌ Missing content for default slot</slot>
- </section>
-</article>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/components/SvelteButton.svelte b/packages/markdown/component/test/fixtures/astro-markdown/src/components/SvelteButton.svelte
deleted file mode 100644
index 74f3ff6a9..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/components/SvelteButton.svelte
+++ /dev/null
@@ -1,11 +0,0 @@
-<script>
- let cool = false
-</script>
-
-<button on:click={() => cool = true}>This is cool right? {cool}</button>
-
-<style>
- button {
- background: green;
- }
-</style>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/components/TextBlock.jsx b/packages/markdown/component/test/fixtures/astro-markdown/src/components/TextBlock.jsx
deleted file mode 100644
index d9ea2534f..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/components/TextBlock.jsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import { h } from 'preact';
-
-const TextBlock = ({
- title,
- children,
- noPadding = false,
-}) => {
- return (
- <div
- className={`${
- noPadding ? "" : "md:px-2 lg:px-4"
- } flex-1 prose prose-headings:font-grotesk`}
- >
- <h3>{title}</h3>
- <p>{children}</p>
- </div>
- );
-};
-
-export default TextBlock;
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/components/index.js b/packages/markdown/component/test/fixtures/astro-markdown/src/components/index.js
deleted file mode 100644
index e7cc94c58..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/components/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import Counter from './Counter';
-
-export default {
- Counter
-}
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/content/code-element.md b/packages/markdown/component/test/fixtures/astro-markdown/src/content/code-element.md
deleted file mode 100644
index b091decc0..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/content/code-element.md
+++ /dev/null
@@ -1,3 +0,0 @@
-This should have `nospace` around it.
-
-This should have <code class="custom-class">nospace</code> around it.
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/imported-md/plain.md b/packages/markdown/component/test/fixtures/astro-markdown/src/imported-md/plain.md
deleted file mode 100644
index d548b3356..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/imported-md/plain.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
----
-
-## Plain jane
-
-I am plain markdown!
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/layouts/content.astro b/packages/markdown/component/test/fixtures/astro-markdown/src/layouts/content.astro
deleted file mode 100644
index 925a243a9..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/layouts/content.astro
+++ /dev/null
@@ -1,10 +0,0 @@
-<html>
- <head>
- <!-- Head Stuff -->
- </head>
- <body>
- <div class="container">
- <slot></slot>
- </div>
- </body>
-</html>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/layouts/layout-props.astro b/packages/markdown/component/test/fixtures/astro-markdown/src/layouts/layout-props.astro
deleted file mode 100644
index a11abb8fb..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/layouts/layout-props.astro
+++ /dev/null
@@ -1,17 +0,0 @@
----
- interface Props {
- url: string;
- file: string;
- title: string;
- }
-
- const { title, url, file } = Astro.props.content as Props;
----
-
-<html>
- <body>
- <div id="title">{title}</div>
- <div id="url">{url}</div>
- <div id="file">{file}</div>
- </body>
-</html> \ No newline at end of file
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/braces.astro b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/braces.astro
deleted file mode 100644
index d92ce6bc3..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/braces.astro
+++ /dev/null
@@ -1,13 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-const title = 'My Blog Post';
-const description = 'This is a post about some stuff.';
----
-
-<Markdown is:raw>
- ## Interesting Topic
-
- `({})`
- `{...props}`
- `{/* JavaScript */}`
-</Markdown>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/children.md b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/children.md
deleted file mode 100644
index a22ee5f96..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/children.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-setup: import TextBlock from '../components/TextBlock'
----
-{/* https://github.com/withastro/astro/issues/3319 */}
-
-<TextBlock title="Hello world!" noPadding>
- <ul class="not-prose">
- <li>A</li>
- <li>B</li>
- <li>C</li>
- </ul>
-</TextBlock>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/close.astro b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/close.astro
deleted file mode 100644
index 034d9a315..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/close.astro
+++ /dev/null
@@ -1,12 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-const content = `Markdown *content* to render`;
----
-
-<main>
- <div id="target">
- <Markdown content={content} />
- <p>Some other stuff</p>
- </div>
- <p>Lastly...</p>
-</main>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/code-element.astro b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/code-element.astro
deleted file mode 100644
index 43ca0bfc5..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/code-element.astro
+++ /dev/null
@@ -1,7 +0,0 @@
----
-const content = await Astro.glob('../content/*.md');
----
-
-<div>
- {content.map(({ Content }) => <Content />)}
-</div>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/code-in-md.md b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/code-in-md.md
deleted file mode 100644
index 52a799ab1..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/code-in-md.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Inline code blocks
-
-`<script>` tags in **Astro** components are now built,
-bundled and optimized by default.
-
-> Markdown formatting still works between tags in inline code blocks.
-
-We can also use closing `</script>` tags without any problems.
-
-# Fenced code blocks
-
-```html
-<body>
- <div>This should also work without any problems.</div>
-</body>
-```
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/code.astro b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/code.astro
deleted file mode 100644
index 7e2b08187..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/code.astro
+++ /dev/null
@@ -1,13 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-const title = 'My Blog Post';
-const description = 'This is a post about some stuff.';
----
-
-<Markdown is:raw>
- ## Interesting Topic
-
- ```js
- const thing = () => {};
- ```
-</Markdown>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/comment-with-js.md b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/comment-with-js.md
deleted file mode 100644
index 374463d2d..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/comment-with-js.md
+++ /dev/null
@@ -1,23 +0,0 @@
-<!--
-HTML comments with */ inside!
--->
-
-<!--
-```js
-/**
- * It even works inside nested fenced code blocks!
- */
-function test() {
- /* Yay */
- return 'Nice!';
-}
-```
--->
-
-```
-<!-- HTML comments in code fence -->
-```
-
-`<!-- HTML comments in code -->`
-
-# It still works!
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/comment.md b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/comment.md
deleted file mode 100644
index 39a916351..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/comment.md
+++ /dev/null
@@ -1,2 +0,0 @@
-<!-- HTML comments! -->
-# It works!
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/complex.astro b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/complex.astro
deleted file mode 100644
index caef4e8bf..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/complex.astro
+++ /dev/null
@@ -1,16 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-import Layout from '../layouts/content.astro';
-import Hello from '../components/Hello.jsx';
-
-const title = 'My Blog Post';
-const description = 'This is a post about some stuff.';
----
-
-<Layout>
- <Markdown>
- ## Interesting Topic
-
- <Hello name={`world`} />
- </Markdown>
-</Layout>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/content.astro b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/content.astro
deleted file mode 100644
index a90bd8c31..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/content.astro
+++ /dev/null
@@ -1,6 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-const content = '# Foo';
----
-
-<Markdown content={content} />
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/dash.md b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/dash.md
deleted file mode 100644
index 269a774f5..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/dash.md
+++ /dev/null
@@ -1,14 +0,0 @@
----
-title: My Blog Post
-layout: ../layouts/content.astro
----
-
-## Title
-
-Hello world
-
-With this in the body ---
-
-## Another
-
-more content \ No newline at end of file
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/deep.astro b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/deep.astro
deleted file mode 100644
index 7de9ec598..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/deep.astro
+++ /dev/null
@@ -1,29 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-import Layout from '../layouts/content.astro';
-import Hello from '../components/Hello.jsx';
-import Counter from '../components/Counter.jsx';
-
-const title = 'My Blog Post';
-const description = 'This is a post about some stuff.';
----
-
-<div id="deep">
- <section class="a">
- <Markdown is:raw>
- ## A
- </Markdown>
- </section>
-
- <section class="b">
- <Markdown is:raw>
- ## B
- </Markdown>
- </section>
-
- <section class="c">
- <Markdown is:raw>
- ## C
- </Markdown>
- </section>
-</div>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/empty-code.md b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/empty-code.md
deleted file mode 100644
index 93cb4eedb..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/empty-code.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-title: My Blog Post
-layout: ../layouts/content.astro
----
-
-## Title
-
-Hello world
-
-With this in the body ---
-
-## Another
-
-more content
-
-```
-
-```
-
-<pre></pre> \ No newline at end of file
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/external.astro b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/external.astro
deleted file mode 100644
index cf6273bce..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/external.astro
+++ /dev/null
@@ -1,19 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-
-const outer = `# Outer`;
-const inner = `## Inner`;
----
-
-<style>
- #root { color: green; }
-</style>
-<div id="root">
- <Markdown content={outer} />
-
- <Markdown>
- # Nested
-
- <Markdown content={inner} />
- </Markdown>
-</div>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/imported-md/with-components.astro b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/imported-md/with-components.astro
deleted file mode 100644
index 97cd8f211..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/imported-md/with-components.astro
+++ /dev/null
@@ -1,9 +0,0 @@
----
-import Layout from '../../layouts/content.astro'
-
-const posts = await Astro.glob('../../imported-md/*.md')
----
-
-<Layout>
- {posts.map(({ Content }) => <Content />)}
-</Layout>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/layout-props.md b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/layout-props.md
deleted file mode 100644
index 0f87c1bd0..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/layout-props.md
+++ /dev/null
@@ -1,4 +0,0 @@
----
-title: 'Hello world!'
-layout: '../layouts/layout-props.astro'
---- \ No newline at end of file
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/nested-list.astro b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/nested-list.astro
deleted file mode 100644
index 771850bc8..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/nested-list.astro
+++ /dev/null
@@ -1,32 +0,0 @@
----
-// Component imports and setup JavaScript go here!
-import Markdown from '@astrojs/markdown-component';
-const content = `
-- list 1
- - list 2
-- list
- - - list
-1. Hello
- 1. Hello`
----
-
-<html lang="en">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width" />
- <title>Welcome to Astro</title>
- </head>
-
- <body>
- <h1>Welcome to <a href="https://astro.build/">Astro</a></h1>
- <div id="target">
- <Markdown is:raw>
- - list
- - nested list
-
- 1. Hello
- 1. nested hello
- </Markdown>
- </div>
- </body>
-</html>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/no-elements.astro b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/no-elements.astro
deleted file mode 100644
index 5671ffaa4..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/no-elements.astro
+++ /dev/null
@@ -1,5 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
----
-
-<Markdown is:raw></Markdown>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/post.astro b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/post.astro
deleted file mode 100644
index 2745edae1..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/post.astro
+++ /dev/null
@@ -1,16 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-import Layout from '../layouts/content.astro';
-import Example from '../components/Example.jsx';
-
-const title = 'My Blog Post';
-const description = 'This is a post about some stuff.';
----
-
-<Markdown>
- ## Interesting Topic
-
- <div id="first">Some content</div>
-
- <Example></Example>
-</Markdown>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/scopedStyles-code.astro b/packages/markdown/component/test/fixtures/astro-markdown/src/pages/scopedStyles-code.astro
deleted file mode 100644
index 1ee0e357d..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/pages/scopedStyles-code.astro
+++ /dev/null
@@ -1,21 +0,0 @@
----
-import Markdown from '@astrojs/markdown-component';
-import Layout from '../layouts/content.astro';
-
----
-<style>
- #root {
- color: green;
- }
-</style>
-<Layout>
- <div id="root">
- <Markdown>
- ## Interesting Topic
-
- ```js
- const thing = () => {};
- ```
- </Markdown>
- </div>
-</Layout>
diff --git a/packages/markdown/component/test/fixtures/astro-markdown/src/scripts/test.js b/packages/markdown/component/test/fixtures/astro-markdown/src/scripts/test.js
deleted file mode 100644
index b179ee953..000000000
--- a/packages/markdown/component/test/fixtures/astro-markdown/src/scripts/test.js
+++ /dev/null
@@ -1 +0,0 @@
-console.log("Hello world");
diff --git a/packages/markdown/component/test/test-utils.js b/packages/markdown/component/test/test-utils.js
deleted file mode 100644
index 6bb3e7c25..000000000
--- a/packages/markdown/component/test/test-utils.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import { loadFixture as baseLoadFixture } from '../../../astro/test/test-utils.js';
-
-export { fixLineEndings } from '../../../astro/test/test-utils.js';
-
-export function loadFixture(config) {
- if (config?.root) {
- config.root = new URL(config.root, import.meta.url);
- }
- return baseLoadFixture(config);
-}