Repository: foambubble/foam

Issue #764: Obsidian-style titles break link references
Created: 2021-09-09T05:57:34Z
Foam version: 0.14.2
Platform: Linux
Issue occur on the foam template repo: Yes

Summary
When creating wikilinks to Obsidian-style-titled files with spaces in the filename, link reference definitions stop working. I believe this is because reference-style links require the link-target to conform to the standards of URLs (spaces rendered as + or %20). Or alternately surrounded by brackets.
Steps to reproduce

Clone foam-template repo in GitHub.
Clone it locally
Change settings.json to include:

"foam.edit.linkReferenceDefinitions": "on", 
"foam.edit.linkReferenceDefinitions": "withExtensions"


Create a new note, new-note1.md
Create a new note, new-note2.md
Create a new note, New Note 3.md
Create a new note, New Note 4.md
From new-note1.md, create a wikilink to new-note2.md; Confirm that the link extension definitions were created.
From new-note2.md create a wikilink to [[new-note1]] and to [[New Note 3]] ; Confirm that the link extension definitions were created. Confirm that the link to New Note 3.md is not enclosed in angle brackets
From new-note2.md create a standard-style link with angle brackets:

[New Note 3](<New Note 3.md>)

No link reference should be created. Confirm that this link does not show up on the Foam Graph.
11. From new-note2.md create a reference-style link:
[[New Note 4]]
[New Note 4]: <New Note 4.md> "New Note 4"

Make sure that your manual reference is before the automatically created block: [//begin]
Confirm that this link does show up on the foam graph.
Unfortunately, a second automatic reference link will be created that won't work (we showed that with the links to New Note 3.md in steps 9 and 10).
12. From New Note 3.md create a wikilink to new-note1.md and new-note2.md ; Confirm that the link extension definitions were created.
13. Push to the cloned repo.
14. Inspect the rendering of the four new note files in GitHub. links to new-note1.md and new-note2.md will render correctly. Wiki-style link to New Note 3.md will not render but the standard-style link will. Confirm that the manually created reference link to New Note 4.md works.
15. Confirm that when viewing new-note2.md, the there is a broken and visible block at the bottom of the file which was supposed to be enclosed by [[//begin]] and [[//end]] and be hidden.
16. Confirm that the rendering of new-note1.md without wikilinks to an Obsidian-style file renders correctly without the hidden block becoming visible.
Additional information
I think the fix is for auto-generated link references to enclose the link target in angle brackets if there's a space in the filename or directory name. Always enclosing it in angle brackets should work as well.

Duplicate issue #746: multi word title notes made by Foam New Note command  are not linked property (github preview)
Created: 2021-08-19T06:11:14Z
Foam version: v0.14.2
Platform: Windows
Issue occur on the foam template repo: Yes

Summary
Notes file by ">Foam: Create New Note" are like "안녕하세요 잉잉잉.md"
But notes by ">markdown Notes:new note" are like "안녕하세요-이희준입니다.md"
Notes made by markdown notes are properly linke in github file preview url (eg. https://github.com/wafe/foam-repo/blob/master/journal/2021-08-18.md)
But notes made by Foam Create New Note command are not linked.
Below is autogenerated link references.
[//begin]: # "Autogenerated link references for markdown compatibility"
[2021-08-18]: 2021-08-18.md "Wednesday, August 18, 2021"
this is made by foam new note => [USG경남공유대학 사이트 로그인 구현]: ../USG경남공유대학 사이트 로그인 구현.md "USG경남공유대학 사이트 로그인 구현"
[2021-08-17]: 2021-08-17.md "Tuesday, August 17, 2021"
[2021-08-한남대-sso-적용]: ../2021-08-한남대-sso-적용.md "2021-08 한남대 SSO 적용"
[2021-07-대전대-imoove-강좌-운영-날짜-설정-버그-확인]: ../2021-07-대전대-imoove-강좌-운영-날짜-설정-버그-확인.md "2021-07 대전대 imoove 강좌 운영 날짜 설정 버그 확인"
[//end]: # "Autogenerated link references"

Closing comment (2021-09-29T16:47:27Z): This is the issue of a space being included in the title URL I reported in #764 .