summaryrefslogtreecommitdiff
path: root/examples/remote-markdown/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/remote-markdown/src')
-rw-r--r--examples/remote-markdown/src/components/Yell.jsx10
-rw-r--r--examples/remote-markdown/src/layouts/main.astro14
-rw-r--r--examples/remote-markdown/src/pages/index.astro72
-rw-r--r--examples/remote-markdown/src/pages/test.astro6
4 files changed, 0 insertions, 102 deletions
diff --git a/examples/remote-markdown/src/components/Yell.jsx b/examples/remote-markdown/src/components/Yell.jsx
deleted file mode 100644
index 366d88a95..000000000
--- a/examples/remote-markdown/src/components/Yell.jsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import { h, Fragment } from 'preact';
-
-export default function Yell({ children }) {
- return (
- children
- .filter((v) => typeof v === 'string')
- .join('')
- .toUpperCase() + '!'
- );
-}
diff --git a/examples/remote-markdown/src/layouts/main.astro b/examples/remote-markdown/src/layouts/main.astro
deleted file mode 100644
index 37fcc0ee7..000000000
--- a/examples/remote-markdown/src/layouts/main.astro
+++ /dev/null
@@ -1,14 +0,0 @@
----
-export let content;
----
-
-<html>
- <head>
- <title>{content.title}</title>
- </head>
-
- <body>
- <slot />
- <pre>{JSON.stringify(content)}</pre>
- </body>
-</html>
diff --git a/examples/remote-markdown/src/pages/index.astro b/examples/remote-markdown/src/pages/index.astro
deleted file mode 100644
index 402780065..000000000
--- a/examples/remote-markdown/src/pages/index.astro
+++ /dev/null
@@ -1,72 +0,0 @@
----
-import Markdown from 'astro/components/Markdown.astro';
-import Yell from '../components/Yell.jsx';
-const title = 'INTERPOLATED';
-const quietTest = 'interpolated';
-const content = await fetch('https://raw.githubusercontent.com/snowpackjs/snowpack/main/README.md').then(res => res.text());
----
-
-<!-- Basic -->
-<Markdown>
-# Hello world!
-</Markdown>
-
- <!-- Indented -->
- <Markdown>
- # Hello indent!
- </Markdown>
-
-<!-- Interpolation -->
-<Markdown>
-# Hello {title}!
-</Markdown>
-
-
- <!-- Can I break this? -->
- <Markdown>
- # I cannot!
-
- <div>
- # ahhhh
- </div>
-
- <Yell>{quietTest}</Yell>
-
- <strong>Dope</strong>
-
- `nice`
-
- ```
- plain fence
- ```
-
- ```html
- don't <div>me</div> bro
- ```
-
- ```js
- Astro.fetchContent()
- ```
-
- ### cool stuff?
- ```astro
- {'can\'t interpolate'}
- {}
- {title}
-
- Do I break? <Markdown> </Markdown>
- ```
- </Markdown>
-
-<!-- external content -->
-<Markdown>{content}</Markdown>
-
-<!-- external with newlines -->
-<Markdown>
- {content}
-</Markdown>
-
- <!-- external with indentation -->
- <Markdown>
- {content}
- </Markdown>
diff --git a/examples/remote-markdown/src/pages/test.astro b/examples/remote-markdown/src/pages/test.astro
deleted file mode 100644
index d0a050f35..000000000
--- a/examples/remote-markdown/src/pages/test.astro
+++ /dev/null
@@ -1,6 +0,0 @@
----
-import Markdown from 'astro/components/Markdown.astro';
-const content = await fetch('https://raw.githubusercontent.com/snowpackjs/snowpack/main/README.md').then(res => res.text());
----
-
-<Markdown content={content} />