Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/content/docs/ja/guides/markdown-content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,14 @@ author: 'Ben'
```astro title="src/pages/my-posts.astro"
---
import * as greatPost from './posts/great-post.md';
const compiled = await greatPost.compiledContent();
const posts = Object.values(import.meta.glob('./posts/*.md', { eager: true }));
---

<p>{greatPost.frontmatter.title}</p>
<p>執筆者: {greatPost.frontmatter.author}</p>

{greatPost.compiledContent()}
<Fragment set:html={compiled} />

<p>過去の投稿:</p>
<ul>
Expand Down Expand Up @@ -276,7 +277,7 @@ export default defineConfig({
markdown: {
processor: satteri({
mdastPlugins: [myMdastPlugin()],
features: { directive: true, definitionList: true },
features: { directive: true },
}),
},
});
Expand Down
Loading