Do not exclude notes containing broken links from the index (#80)

pull/83/head
Mickaël Menu 3 years ago committed by GitHub
parent 1fc7ceafac
commit aed57452f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file.
### Fixed
* UTF-8 handling in the LSP server.
* [#78](https://github.com/mickael-menu/zk/issues/78) Do not exclude notes containing broken links from the index.
## 0.6.0

@ -200,7 +200,8 @@ func (t *indexTask) noteAt(path string) (Note, error) {
href := filepath.Join(filepath.Dir(absPath), link.Href)
link.Href, err = t.notebook.RelPath(href)
if err != nil {
return note, wrap(err)
t.logger.Err(err)
continue
}
}
note.Links = append(note.Links, link)

Loading…
Cancel
Save