功能演示

点击图片放大

左右键切换文章

滚动定位 + 目录定位

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

代码高亮

// 注释信息
#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;
}

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

# 高亮 5 - 7 行
# ```c{5-7}

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

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

20250215214015

latex 语法支持

需要启用

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] NOTE
Highlights information that users should take into account, even when skimming.

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

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

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

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

[!QUESTION] QUESTION
我想知道这个问题是否还存在

zood