summaryrefslogtreecommitdiff
path: root/examples/with-markdown/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-markdown/src')
-rw-r--r--examples/with-markdown/src/layouts/main.astro4
-rw-r--r--examples/with-markdown/src/pages/external.astro4
-rw-r--r--examples/with-markdown/src/pages/index.astro20
3 files changed, 14 insertions, 14 deletions
diff --git a/examples/with-markdown/src/layouts/main.astro b/examples/with-markdown/src/layouts/main.astro
index 425f5dc08..006c4ca6c 100644
--- a/examples/with-markdown/src/layouts/main.astro
+++ b/examples/with-markdown/src/layouts/main.astro
@@ -1,10 +1,10 @@
---
-import '../styles/global.css';
+import "../styles/global.css";
const { content } = Astro.props;
---
-<html lang={content.lang || 'en'}>
+<html lang={content.lang || "en"}>
<head>
<meta charset="utf-8" />
diff --git a/examples/with-markdown/src/pages/external.astro b/examples/with-markdown/src/pages/external.astro
index 82cac13d4..395e27c71 100644
--- a/examples/with-markdown/src/pages/external.astro
+++ b/examples/with-markdown/src/pages/external.astro
@@ -1,6 +1,6 @@
---
-import { Markdown } from 'astro/components';
-import Layout from '../layouts/main.astro';
+import { Markdown } from "astro/components";
+import Layout from "../layouts/main.astro";
const title = `External Markdown`;
const content = `Markdown *content* to render`;
diff --git a/examples/with-markdown/src/pages/index.astro b/examples/with-markdown/src/pages/index.astro
index e70e12f35..1cc85c16c 100644
--- a/examples/with-markdown/src/pages/index.astro
+++ b/examples/with-markdown/src/pages/index.astro
@@ -1,19 +1,19 @@
---
// Component Imports
-import { Markdown } from 'astro/components';
-import Layout from '../layouts/main.astro';
-import ReactCounter from '../components/ReactCounter.jsx';
-import PreactCounter from '../components/PreactCounter.tsx';
-import VueCounter from '../components/VueCounter.vue';
-import SvelteCounter from '../components/SvelteCounter.svelte';
+import { Markdown } from "astro/components";
+import Layout from "../layouts/main.astro";
+import ReactCounter from "../components/ReactCounter.jsx";
+import PreactCounter from "../components/PreactCounter.tsx";
+import VueCounter from "../components/VueCounter.vue";
+import SvelteCounter from "../components/SvelteCounter.svelte";
// Component Script:
// You can write any JavaScript/TypeScript that you'd like here.
// It will run during the build, but never in the browser.
// All variables are available to use in the HTML template below.
-const title = 'Astro Markdown';
-const variable = 'content';
-const items = ['A', 'B', 'C'];
+const title = "Astro Markdown";
+const variable = "content";
+const items = ["A", "B", "C"];
// Full Astro Component Syntax:
// https://docs.astro.build/core-concepts/astro-components/
@@ -57,7 +57,7 @@ const items = ['A', 'B', 'C'];
Should work!
```js
- import Something from './another';
+ import Something from "./another";
const thing = new Something();
```