mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve doc convert to heading https://github.com/siyuan-note/siyuan/issues/12607
This commit is contained in:
parent
459b700e26
commit
800dec29df
2 changed files with 12 additions and 3 deletions
|
|
@ -203,8 +203,8 @@ func LoadTreeByBlockIDWithReindex(id string) (ret *parse.Tree, err error) {
|
|||
}
|
||||
|
||||
func LoadTreeByBlockID(id string) (ret *parse.Tree, err error) {
|
||||
if "" == id {
|
||||
logging.LogErrorf("block id is empty")
|
||||
if !ast.IsNodeIDPattern(id) {
|
||||
logging.LogErrorf("block id is invalid [id=%s]", id)
|
||||
return nil, ErrTreeNotFound
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue