Great
It’s nice
Note
Information the user should notice even if skimming.
Tip
Optional information to help a user be more successful.
Important
Essential information required for user success.
Caution
Negative potential consequences of an action.
Warning
Dangerous certain consequences of an action.
Note
Add the key takeaway here.
Tip
Add the key takeaway here.
Important
Add the key takeaway here.
code
Console.log("hello world")
{"bob":"foo"}
interface Article {
id: number;
title: string;
tags: string[];
publishedAt: Date;
}
class BlogService {
private articles: Article[] = [];
add(article: Article): void {
this.articles.push(article);
}
findByTag(tag: string): Article[] {
return this.articles.filter(article =>
article.tags.includes(tag)
);
}
list(): Article[] {
return [...this.articles];
}
}
const blog = new BlogService();
blog.add({
id: 1,
title: "Getting Started with Astro",
tags: ["astro", "typescript"],
publishedAt: new Date("2026-05-30"),
});
blog.add({
id: 2,
title: "Markdown Tips",
tags: ["markdown", "writing"],
publishedAt: new Date("2026-05-31"),
});
const astroArticles = blog.findByTag("astro");
console.log("Astro Articles:");
astroArticles.forEach(article => {
console.log(`- ${article.title}`);
});
Note
Add the key takeaway here.
code
世界是平坦的。 我们现在知道世界是圆的。