1607 字
8 分钟
Fuwari 博客特性展示
2025-05-19

一级标题#

本文用于展示Fuwari博客的一些特性,段落之间是换行符分隔。

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

常规文本,斜体粗体mono下划线删除线

  • 无序列表

  • Foo

  • Bar

这是文本引用

引用可以多段

三个-表示分割线,两个-表示范围(1—5),三个.表示省略号(…)。


键盘元素 ctrl + s

<kbd>ctrl</kbd> + <kbd>s</kbd>

字体颜色

红色真实 蓝色真实 紫色真实 金色真实 绿色 高亮

<font color=red>红色真实</font>
<font color=blue>蓝色真实</font>
<font color=purple>紫色真实</font>
<font color=yellow>金色真实</font>
<font color=green>绿色</font>
<mark>高亮</mark>

二级标题#

  1. 有序列表

  2. Foo

  3. Bar

代码示例

define foobar() {
print "Welcome to flavor country!";
}

语法高亮代码块

import time
# Quick, count to ten!
for i in range(10):
# (but not *too* quick)
time.sleep(0.5)
print i

diff 代码块

print('Hello')
print('World')

shield 徽章

三级标题#

嵌套列表

  1. 首先获取食材

    • carrots

    • celery

    • lentils

  2. 烧水

  3. 把食材扔进锅里,按照以下算法

    find wooden spoon
    uncover pot
    stir
    cover pot
    balance wooden spoon precariously on pot handle
    wait 10 minutes
    goto first step (or shut off burner when done)

    不要撞到木勺,否则它会掉下来。

超链接展示,外部网站跳到一级标题。脚注1

行内公式 ω=dϕ/dt\omega = d\phi / dt

行间公式

I=ρR2dVI = \int \rho R^{2} dV

π=3.1415926535  8979323846  2643383279  5028841971  6939937510  5820974944  5923078164  0628620899  8628034825  3421170679  \begin{equation*} \pi =3.1415926535 \;8979323846\;2643383279\;5028841971\;6939937510\;5820974944 \;5923078164\;0628620899\;8628034825\;3421170679\;\ldots \end{equation*}

转义字符, ex.: `foo`, *bar*, etc.

图片

这是一张图片
这是一张图片

扩展#

视频#

嵌入视频

Github 卡片#

您可以添加动态卡片,链接到 GitHub 仓库,页面加载时,仓库信息会从 GitHub API 获取。

::github{repo="saicaca/fuwari"}
saicaca
/
fuwari
Waiting for api.github.com...
00K
0K
0K
Waiting...

警告#

NOTE

突出显示用户即使在浏览时也应注意的信息。

TIP

可能有帮助的提示信息。

IMPORTANT

很重要的信息。

WARNING

需要注意。

CAUTION

警告信息。

基本语法#

:::note
Highlights information that users should take into account, even when skimming.
:::
:::tip
Optional information to help a user be more successful.
:::

自定义标题#

注意

这是一条自定义标题的注意。

:::note[注意]
这是一条自定义标题的注意。
:::

Github 语法#

TIP

Github 语法也是支持的。

> [!NOTE]
> Github 语法也是支持的。
> [!TIP]
> Github 语法也是支持的。

Expressive Code#

Fuwari 官方并没有支持 Expressive Code,这部分是 DIY 内容。

代码框和标题

my-test-file.js
console.log('Title attribute example')

在代码内注释也可以设置标题

src/content/index.html
<div>File name comment example</div>

代码折叠

5 collapsed lines
// All this boilerplate setup code will be collapsed
import { someBoilerplateEngine } from '@example/some-boilerplate'
import { evenMoreBoilerplate } from '@example/even-more-boilerplate'
const engine = someBoilerplateEngine(evenMoreBoilerplate())
// This part of the code will be visible by default
engine.doSomething(1, 2, 3, calcFn)
function calcFn() {
// You can have multiple collapsed sections
3 collapsed lines
const a = 1
const b = 2
const c = a + b
// This will remain visible
console.log(`Calculation result: ${a} + ${b} = ${c}`)
return c
}
4 collapsed lines
// All this code until the end of the block will be collapsed again
engine.closeConnection()
engine.freeMemory()
engine.shutdown({ reason: 'End of example boilerplate code' })

行标记

// Line 1 - targeted by line number
// Line 2
// Line 3
// Line 4 - targeted by line number
// Line 5
// Line 6
// Line 7 - targeted by range "7-8"
// Line 8 - targeted by range "7-8"

指定行标记类型

line-markers.js
function demo() {
console.log('this line is marked as deleted')
// This line and the next one are marked as inserted
console.log('this is the second inserted line')
return 'this line uses the neutral default marker type'
}

给行标记添加标签

labeled-line-markers.jsx
<button
role="button"
{...props}
value={value}
className={buttonClassName}
disabled={disabled}
active={active}
>
{children &&
!active &&
(typeof children === 'string' ? <span>{children}</span> : children)}
</button>

diff 语法

this line will be marked as inserted
this line will be marked as deleted
this is a regular line

raw diff

--- a/README.md
+++ b/README.md
@@ -1,3 +1,4 @@
+this is an actual diff file
-all contents will remain unmodified
no whitespace will be removed either

diff + 语法高亮

function thisIsJavaScript() {
// This entire block gets highlighted as JavaScript,
// and we can still add diff markers to it!
console.log('Old code to be removed')
console.log('New and shiny code!')
}

文本标记

function demo() {
console.log('These are inserted and deleted marker types');
// The return statement uses the default marker type
return true;
}

渲染 ANSI 转义序列、终端标题

ANSI terminal example
Standard ANSI colors:
- Dimmed: Black Red Green Yellow Blue Magenta Cyan White
- Foreground: Black Red Green Yellow Blue Magenta Cyan White
- Background: Black Red Green Yellow Blue Magenta Cyan White
- Reversed: Black Red Green Yellow Blue Magenta Cyan White
8-bit colors (showing colors 160-171 as an example):
- Dimmed: 160 161 162 163 164 165 166 167 168 169 170 171
- Foreground: 160 161 162 163 164 165 166 167 168 169 170 171
- Background: 160 161 162 163 164 165 166 167 168 169 170 171
- Reversed: 160 161 162 163 164 165 166 167 168 169 170 171
24-bit colors (full RGB):
- Dimmed: ForestGreen - RGB(34,139,34) RebeccaPurple - RGB(102,51,153)
- Foreground: ForestGreen - RGB(34,139,34) RebeccaPurple - RGB(102,51,153)
- Background: ForestGreen - RGB(34,139,34) RebeccaPurple - RGB(102,51,153)
- Reversed: ForestGreen - RGB(34,139,34) RebeccaPurple - RGB(102,51,153)
Font styles:
- Default
- Bold
- Dimmed
- Italic
- Underline
- Reversed
- Strikethrough

友情链接卡片组#

GitHub
全球最大的代码托管平台,开发者的聚集地
MDN Web Docs
Web开发者的权威文档和学习资源
Vue.js
渐进式JavaScript框架,易学易用
Astro
现代静态网站生成器,性能优异现代静态网站生成器,性能优异现代静态网站生成器,性能优异现代静态网站生成器,性能优异现代静态网站生成器,性能优异现代静态网站生成器,性能优异现代静态网站生成器,性能优异现代静态网站生成器,性能优异现代静态网站生成器,性能优异现代静态网站生成器,性能优异现代静态网站生成器,性能优异现代静态网站生成器,性能优异现代静态网站生成器,性能优异现代静态网站生成器,性能优异现代静态网站生成器,性能优异现代静态网站生成器,性能优异

语法

:::friend-links
- name: 网站名称
url: https://example.com
avatar: https://example.com/avatar.png
desc: 网站描述
- name: 另一个网站
url: https://another.com
avatar: https://another.com/logo.svg
desc: 另一个网站的描述
:::

其他#

Email 保护 联系邮箱

图片标题

有标题的图片
有标题的图片

Footnotes#

  1. 这是脚注

Fuwari 博客特性展示
https://kasuha.com/posts/fuwari-showcase/
作者
霞葉
发布于
2025-05-19
许可协议
CC BY-NC-SA 4.0
评论加载中...