Skip to content

Commit

Permalink
docs: add playground page for testing issue 27
Browse files Browse the repository at this point in the history
  • Loading branch information
chelkyl committed Apr 26, 2024
1 parent 21e92d9 commit 722fcab
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/playground/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
<ul>
<li><a href="/test-md-local">Test Local Markdown "< Markdown >"</a></li>
<li><a href="/test-issue7">Test Issue #7</a></li>
<li><a href="/test-issue27">Test Issue #27</a></li>
</ul>
<h2>Remote:</h2>
<ul>
<li><a href="/test-html">Test Remote HTML "< Markup >"</a></li>
<li><a href="/test-md-remote">Test Remote Markdown "< Markdown >"</a></li>
</ul>
</body>
</html>
</html>
18 changes: 18 additions & 0 deletions packages/playground/src/pages/test-issue27.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
import { Markdown } from "astro-remote";
---

<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>Astro</title>
</head>
<body>
<Markdown content={"<mark>Highlighted word</mark> with no trailing space"} />
<Markdown content={"<mark>Highlighted word</mark> with trailing space "} />
<Markdown content={"Non-initial <mark>Highlighted word</mark> with trailing spaces "} />
</body>
</html>

0 comments on commit 722fcab

Please sign in to comment.