Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the Markdown component to its own package #3986

Merged
merged 7 commits into from
Jul 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .changeset/wild-socks-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
'astro': minor
'@astrojs/markdown-component': minor
---

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
---
import { Markdown } from 'astro/components';
---
```

Becomes:

```astro
---
import Markdown from '@astrojs/markdown-component';
---
```
1 change: 0 additions & 1 deletion examples/with-markdown-plugins/src/layouts/main.astro
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const { content } = Astro.props;
<header>
<nav class="nav">
<a href="/">Home</a>
<a href="/about">About</a>
</nav>
</header>
<slot />
Expand Down
20 changes: 0 additions & 20 deletions examples/with-markdown-plugins/src/pages/about.astro

This file was deleted.

3 changes: 1 addition & 2 deletions examples/with-markdown-shiki/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ npm init astro -- --template with-markdown-shiki

This example showcases Astro's [built-in Markdown support](https://docs.astro.build/en/guides/markdown-content/).

- `src/pages/index.astro` uses Astro's `<Markdown>` component.
- `src/pages/other.md` is a treated as a page entrypoint and uses a `layout`.
- `src/pages/index.md` is a treated as a page entrypoint and uses a `layout`.
19 changes: 0 additions & 19 deletions examples/with-markdown/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions examples/with-markdown/.npmrc

This file was deleted.

6 changes: 0 additions & 6 deletions examples/with-markdown/.stackblitzrc

This file was deleted.

12 changes: 0 additions & 12 deletions examples/with-markdown/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions examples/with-markdown/astro.config.mjs

This file was deleted.

26 changes: 0 additions & 26 deletions examples/with-markdown/package.json

This file was deleted.

Binary file removed examples/with-markdown/public/favicon.ico
Binary file not shown.
11 changes: 0 additions & 11 deletions examples/with-markdown/sandbox.config.json

This file was deleted.

20 changes: 0 additions & 20 deletions examples/with-markdown/src/components/PreactCounter.tsx

This file was deleted.

19 changes: 0 additions & 19 deletions examples/with-markdown/src/components/ReactCounter.jsx

This file was deleted.

22 changes: 0 additions & 22 deletions examples/with-markdown/src/components/SvelteCounter.svelte

This file was deleted.

27 changes: 0 additions & 27 deletions examples/with-markdown/src/components/VueCounter.vue

This file was deleted.

18 changes: 0 additions & 18 deletions examples/with-markdown/src/layouts/main.astro

This file was deleted.

19 changes: 0 additions & 19 deletions examples/with-markdown/src/pages/external.astro

This file was deleted.

65 changes: 0 additions & 65 deletions examples/with-markdown/src/pages/index.astro

This file was deleted.

18 changes: 0 additions & 18 deletions examples/with-markdown/src/pages/other.md

This file was deleted.

Loading