`でラップする`
`コンポーネントを作成します。親要素に`prose`スタイルクラスと任意の[Tailwind要素モディファイアー](https://tailwindcss.com/docs/typography-plugin#element-modifiers)を追加します。
+
+ ```astro title="src/components/Prose.astro"
+ ---
+ ---
+
+
+
+ ```
+ :::tip
+ `@tailwindcss/typography`プラグインは[**要素モディファイアー**](https://tailwindcss.com/docs/typography-plugin#element-modifiers)を使用して、`prose`クラスを持つコンテナの子コンポーネントにスタイルを適用します。
+
+ これらのモディファイアーは以下の一般的な構文に従います。
+
+ ```
+ prose-[element]:class-to-apply
+ ```
+
+ たとえば、`prose-h1:font-bold`はすべての`
`タグに`font-bold`のTailwindクラスを適用します。
+ :::
+
+2. Markdownをレンダリングしたいページでコレクションエントリーを取得します。`await render(entry)`から取得した``コンポーネントを``の子として渡し、MarkdownコンテンツをTailwindのスタイルでラップします。
+
+ ```astro title="src/pages/index.astro"
+ ---
+ import Prose from '../components/Prose.astro';
+ import Layout from '../layouts/Layout.astro';
+ import { getEntry, render } from 'astro:content';
+
+ const entry = await getEntry('collection', 'entry');
+ const { Content } = await render(entry);
+ ---
+
+
+
+
+
+ ```
+
+
+## 参考リソース
+
+- [Tailwind Typographyのドキュメント](https://tailwindcss.com/docs/typography-plugin)