summaryrefslogtreecommitdiff
path: root/packages/integrations/markdoc/test
diff options
context:
space:
mode:
authorGravatar Ben Holmes <hey@bholmes.dev> 2023-07-07 16:50:06 -0400
committerGravatar GitHub <noreply@github.com> 2023-07-07 16:50:06 -0400
commit8df6a423c5088a68cc409b5415b09aff0c10a0f1 (patch)
tree2e2e2a8d5ab59538eb9432f237e6e2bcdc6864ed /packages/integrations/markdoc/test
parent6fd9f4a1601424f054985611a716123c272429c3 (diff)
downloadastro-8df6a423c5088a68cc409b5415b09aff0c10a0f1.tar.gz
astro-8df6a423c5088a68cc409b5415b09aff0c10a0f1.tar.zst
astro-8df6a423c5088a68cc409b5415b09aff0c10a0f1.zip
Fix: Hyphens breaking Markdoc tags (#7599)
* fix: handle hyphens in tag names * test: add hyphen in test suite * chore: changeset
Diffstat (limited to 'packages/integrations/markdoc/test')
-rw-r--r--packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.ts2
-rw-r--r--packages/integrations/markdoc/test/fixtures/render-with-components/src/content/blog/with-components.mdoc4
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.ts b/packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.ts
index b7845d182..ffb264ed8 100644
--- a/packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.ts
+++ b/packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.ts
@@ -11,7 +11,7 @@ export default defineMarkdocConfig({
},
},
tags: {
- mq: {
+ 'marquee-element': {
render: component('./src/components/CustomMarquee.astro'),
attributes: {
direction: {
diff --git a/packages/integrations/markdoc/test/fixtures/render-with-components/src/content/blog/with-components.mdoc b/packages/integrations/markdoc/test/fixtures/render-with-components/src/content/blog/with-components.mdoc
index 2c9bae972..61f404a97 100644
--- a/packages/integrations/markdoc/test/fixtures/render-with-components/src/content/blog/with-components.mdoc
+++ b/packages/integrations/markdoc/test/fixtures/render-with-components/src/content/blog/with-components.mdoc
@@ -6,9 +6,9 @@ title: Post with components
This uses a custom marquee component with a shortcode:
-{% mq direction="right" %}
+{% marquee-element direction="right" %}
I'm a marquee too!
-{% /mq %}
+{% /marquee-element %}
And a code component for code blocks: