功能演示

点击图片放大

不同图片尺寸

![](https://raw.githubusercontent.com/learner-lu/picbed/master/background.jpg)

# 结尾加上 "|mid" 表示中等尺寸
![|mid](https://raw.githubusercontent.com/learner-lu/picbed/master/background.jpg)

# 结尾加上 "|small" 表示小尺寸
![|small](https://raw.githubusercontent.com/learner-lu/picbed/master/background.jpg)

滚动定位 + 目录定位

Mermaid 语法支持

需要启用。点击图表可打开查看器,支持滚轮缩放、拖拽移动、双击放大,也可使用右上角按钮或键盘操作。

graph TD
    A[Enter Chart Definition] --> B(Preview)
    B --> C{decide}
    C --> D[Keep]
    C --> E[Edit Definition]
    E --> B
    D --> F[Save Image and Code]
    F --> B
sequenceDiagram
    participant SDK
    participant API as CubeAPI
    participant Master as CubeMaster
    participant Let as Cubelet
    participant CTD as containerd
    participant Shim as CubeShim
    participant VMM as Hypervisor

    SDK->>API: POST /sandboxes/{id}/pause
    API->>Master: POST /cube/sandbox/update action=pause
    Master->>Master: 从 cache/proxy map 定位 host
    Master->>Let: UpdateCubeSandbox(action=pause)
    Let->>Let: 获取 sandboxLifecycleLocks[id]
    Let->>Let: RUNNING -> PAUSING,执行 pre-stop
    Let->>CTD: Task.Pause(pod_scope=id)
    CTD->>Shim: ttrpc pause
    Shim->>Shim: 校验 Normal 且无活动 exec
    Shim->>Shim: 断开 agent/监控/日志
    Shim->>VMM: VmPauseToSnapshot(path)
    VMM->>VMM: pause -> snapshot -> delete VM
    VMM-->>Shim: VmShutdown event
    Shim-->>Let: pause success
    Let->>Let: PAUSING -> PAUSED,SyncByID
    Let-->>Master: success
    Master-->>API: success
    Master->>Redis: 发布 state=paused 事件
    API-->>SDK: 204
    SDK->>API: GET detail(默认轮询)
    API-->>SDK: state=paused

代码高亮

# 高亮 5 - 7 行
# ```c{5-7}
// 注释信息
#include <linux/init.h>
#include <linux/module.h>

static int major = 237;
static int minor = 0;
static dev_t devno;


static int hello_open (struct inode *inode, struct file *filep)
{
    printk("hello_open()\n");
    return 0;
}
static int hello_release (struct inode *inode, struct file *filep)
{
    printk("hello_release()\n");

    return 0;
}

#define KMAX_LEN 32
char kbuf[KMAX_LEN+1] = "kernel";
//write(fd,buff,40);
static ssize_t hello_write (struct file *filep, const char __user *buf, size_t size, loff_t *pos)
{
    int error;
    if(size > KMAX_LEN)
    {
        size = KMAX_LEN;
    }
    memset(kbuf,0,sizeof(kbuf));
    if(copy_from_user(kbuf, buf, size))
    {
        error = -EFAULT;
        return error;
    }
    printk("%s\n",kbuf);
    return size;
}

如果不确定行号, 可以暂时标记为 {?}, 执行后会在终端中输出如下信息辅助定位

# ```c{?}

20250215214015

如果希望高亮某一个 token, 标记语法为

# 高亮第 8 个 token
# ```c{#8}

如不确定 token id 可以标记为 {??}

# ```c{??}

20260427154516

latex 语法支持

需要启用 zood config 将 enable_latex 改为 true

asjdal$\text{Attention}(Q_t) = \text{softmax}(Q_t K^T) V$asda

github markdown

> [!NOTE]  
> Highlights information that users should take into account, even when skimming.

> [!TIP]
> Optional information to help a user be more successful.

> [!IMPORTANT]  
> Crucial information necessary for users to succeed.

> [!WARNING]  
> Critical content demanding immediate user attention due to potential risks.

> [!CAUTION]
> Negative potential consequences of an action.

> [!QUESTION]
> Negative potential consequences of an action.
NOTE

Highlights information that users should take into account, even when skimming.

TIP

Optional information to help a user be more successful.

IMPORTANT

Crucial information necessary for users to succeed.

WARNING

Critical content demanding immediate user attention due to potential risks.

CAUTION

Negative potential consequences of an action.

QUESTION

我想知道这个问题是否还存在

zood