Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Built-in Pandoc is not working on Unix-like Fix https://github.com/siyuan-note/siyuan/issues/16623

Daniel43c8ccb96bd1
diff --git a/kernel/util/pandoc.go b/kernel/util/pandoc.go
index 67031c347e..300fe54997 100644
--- a/kernel/util/pandoc.go
+++ b/kernel/util/pandoc.go
@@ -222,14 +222,6 @@ func IsValidPandocBin(binPath string) bool {
return false
}
- // 在 Unix-like 上要求拥有可执行权限
- if !gulu.OS.IsWindows() {
- if fi.Mode().Perm()&os.FileMode(0o111) == 0 {
- logging.LogWarnf("file [%s] is not executable", binPath)
- return false
- }
- }
-
// 读取文件头判断是否为二进制并排除脚本(#!)
f, err := os.Open(binPath)
if err != nil {