Skip to content

Commit b6afe7b

Browse files
committed
feat: integrate new Markdoc tags - Youtube, Tabs
1 parent 9a52da7 commit b6afe7b

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

src/content/blog/markdoc-integration.mdoc

+11-1
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,18 @@ Astro Ink ships with the following tags with more coming soon...
7272
{% /link %}
7373

7474
### Tweet Embed
75-
7675
{% tweet url="https://twitter.com/aftabbuddy/status/1630403326406959105" %}
76+
{% /tweet %}
77+
78+
79+
80+
{% yt url="https://www.youtube.com/embed/ADnaRwQZfqw" title="SvelteKit + GraphQL with Houdini | Intro, Setup and Project Overview" %}
81+
{% /yt %}
82+
83+
### Tabs
84+
85+
{% tabs heading="some" tabs=[{title: "tab1", body: "tab1"}, {title: "tab2", body: "tab2"}] %}
86+
{% /tabs %}
7787

7888
...more tags coming soon!
7989

src/pages/blog/[slug].astro

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import PostLayout from '$/layouts/post.astro';
44
55
import Callout from "../../components/mdoc/Callout.astro";
66
import Link from "../../components/mdoc/Link.astro";
7-
import TweetEmbed from "src/components/mdoc/TweetEmbed.astro";
7+
import TweetEmbed from "../../components/mdoc/TweetEmbed.astro";
8+
import YTVideoEmbed from "../../components/mdoc/YTVideoEmbed.astro";
9+
import Tabs from "../../components/mdoc/Tabs/Tabs.astro";
810
911
// get the views count
1012
// get the likes count
@@ -21,6 +23,8 @@ const { Content } = await entry.render()
2123
<Content components={{
2224
Callout,
2325
Link,
24-
TweetEmbed
26+
TweetEmbed,
27+
YTVideoEmbed,
28+
Tabs
2529
}}/>
2630
</PostLayout>

0 commit comments

Comments
 (0)