需求
代码/测试
验证
部署

嵌入 HTML 示例

以下是一个嵌入的 HTML 按钮:

复杂 HTML 示例

以下是一个嵌入的 HTML 卡片:

卡片标题

这是一个简单的卡片示例。

1. 修正后的Nginx配置


server {
    listen 5000;
    listen [::]:5000;

    server_name localhost;

    # 挂载本地目录
    location /md_files/ {
        alias  project/workspace/my-book/md_files/;  # 替换为你的本地目录路径
        autoindex on;  # 启用目录列表
        autoindex_exact_size off;  # 显示文件大小而不是字节数
        autoindex_localtime on;  # 使用本地时间显示文件时间

        # 处理Markdown文件
        location ~* \.md$ {
            default_type text/plain;
            add_header Content-Type "text/plain; charset=utf-8";  # 设置字符编码为UTF-8
        }
    }
}