Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOC generation fails if folder name contains ")" #81

Open
cnschu opened this issue May 20, 2024 · 2 comments
Open

TOC generation fails if folder name contains ")" #81

cnschu opened this issue May 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@cnschu
Copy link

cnschu commented May 20, 2024

  1. crate a folder
  2. rename folder to something like 1) First Folder
  3. activate obsidian-folder-index plugin
  4. navigate to the new folder
  5. create a note in the folder
  6. navigate to the new folder (index page is displayed)
  7. activate "reading mode"
  8. all generated Links in the displayed index file are broken

( and ) in the folders name should be escaped.

example bugged TOC:
[Test Notiz 1](app://obsidian.md/1)%20First%20Folder/Test%20Notiz%201.md) [Testnotiz 2](app://obsidian.md/1)%20First%20Folder/Testnotiz%202.md)
image

@cnschu cnschu changed the title TOC generation fails of folder name contains ")" TOC generation fails if folder name contains ")" May 21, 2024
@turulix turulix added the bug Something isn't working label May 21, 2024
@turulix
Copy link
Owner

turulix commented May 21, 2024

Im assuming [] would also break this?

@cnschu
Copy link
Author

cnschu commented May 23, 2024

[ ] # ^ | are not allowed by obsidian, but it would be clever to escape them too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants