Blog Post 0
Hello Blog! This is my 0th blogpost to test features of markdown in Astro.
Table of contents
Open Table of contents
plain text
-
English: My personal blog.
-
中文:我的个人博客。
-
Making Blog Posts: This is my first blog post! I now have Astro pages and Markdown posts!
code snippet
Test how the code snippet looks like in my blog:
class Solution {
public:
int findMin(vector<int>& nums) {
int n = nums.size();
int l = 0, r = n - 1, mid = 0;
while (nums[r] < nums[l]) {
mid = l + (r - l) / 2;
if (nums[mid] < nums[r]) {
r = mid;
} else {
l = mid + 1;
}
}
return nums[l];
}
};
LaTeX equation
This is an inline equation:
This is a math block:
Image
This is an image:
Table
expression | meaning | usage example |
---|---|---|
bring up | to raise for discussion | You bring up a good point for others. |
savvy | having practical knowledge and understanding of sth | John is tech-savvy, he knows everything about the latest technology trends. |
gentrify | to develop | Wealthy residents have gentrified the area in the last decade. |
The above is a sample table.
Other
-
This is a checked checkbox. -
This is an unchecked checkbox.
-
Strong
-
emphasis
-
underline
-
==highlight==
This is a quote.
[!NOTE]
This is a note.
[!TIP]
This is a tip.
[!IMPORTANT]
This is an important item.
[!WARNING]
This is a warning.
[!CAUTION]
This is a caution notice.