mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🐛 使用 API /api/block/updateBlock 更新列表块时无法渲染行内公式 https://github.com/siyuan-note/siyuan/issues/5814
This commit is contained in:
parent
06ea7b79c7
commit
6cf43b34a9
2 changed files with 6 additions and 2 deletions
|
|
@ -22,6 +22,7 @@ import (
|
|||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/88250/gulu"
|
||||
"github.com/siyuan-note/logging"
|
||||
|
|
@ -131,6 +132,10 @@ func IsRelativePath(dest string) bool {
|
|||
}
|
||||
|
||||
func TimeFromID(id string) (ret string) {
|
||||
if 14 > len(id) {
|
||||
logging.LogWarnf("invalid id [%s], stack [\n%s]", id, logging.ShortStack())
|
||||
return time.Now().Format("20060102150405")
|
||||
}
|
||||
ret = id[:14]
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue