一级标题
本文用于展示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>二级标题
-
有序列表
-
Foo
-
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 idiff 代码块
print('Hello')print('World')shield 徽章
三级标题
嵌套列表
-
首先获取食材
-
carrots
-
celery
-
lentils
-
-
烧水
-
把食材扔进锅里,按照以下算法
find wooden spoonuncover potstircover potbalance wooden spoon precariously on pot handlewait 10 minutesgoto first step (or shut off burner when done)不要撞到木勺,否则它会掉下来。
行内公式
行间公式
转义字符, ex.: `foo`, *bar*, etc.
图片

扩展
视频
嵌入视频
Github 卡片
您可以添加动态卡片,链接到 GitHub 仓库,页面加载时,仓库信息会从 GitHub API 获取。
::github{repo="saicaca/fuwari"}警告
NOTE突出显示用户即使在浏览时也应注意的信息。
TIP可能有帮助的提示信息。
IMPORTANT很重要的信息。
WARNING需要注意。
CAUTION警告信息。
基本语法
:::noteHighlights information that users should take into account, even when skimming.:::
:::tipOptional information to help a user be more successful.:::自定义标题
注意这是一条自定义标题的注意。
:::note[注意]这是一条自定义标题的注意。:::Github 语法
TIPGithub 语法也是支持的。
> [!NOTE]> Github 语法也是支持的。
> [!TIP]> Github 语法也是支持的。Expressive Code
Fuwari 官方并没有支持 Expressive Code,这部分是 DIY 内容。
代码框和标题
console.log('Title attribute example')在代码内注释也可以设置标题
<div>File name comment example</div>代码折叠
5 collapsed lines
// All this boilerplate setup code will be collapsedimport { 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 defaultengine.doSomething(1, 2, 3, calcFn)
function calcFn() { // You can have multiple collapsed sections3 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 againengine.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"指定行标记类型
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'}给行标记添加标签
<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 insertedthis line will be marked as deletedthis is a regular lineraw 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 eitherdiff + 语法高亮
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 转义序列、终端标题
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友情链接卡片组
语法
:::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
-
这是脚注 ↩
