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

Bug: forbidden character combinations while copy & pasting the text of a website to a note #1068

Closed
merlinuwe opened this issue Apr 6, 2024 · 4 comments · Fixed by #1076
Closed
Assignees
Labels
bug Something isn't working reproducible resolution/update-made A change has been made that should resolve this issue or request yaml YAML related issues or features

Comments

@merlinuwe
Copy link

merlinuwe commented Apr 6, 2024

I have this note:

image

with this markdown:


---
aliases: [avm, Fritz, Fritzbox, AX, Router, ntp, timeserver]
tags: [avm, FritzBox, Fritz, AX, Router, privat, account, ntp, timeserver, Zeitserver, Braunschweig]
filename: muell-Linter
erstellt: Donnerstag, 22. Februar 2024, 10:24:46 Uhr
geändert: Samstag, 06. April 2024, 22:48:11 Uhr
---

`

#`

If I linter it, the first "[" after "tags:" is deleted and at the end there is a ", `" instead of a "]":

image

muell-Linter.md

This causes after lintering again this error message:

image

(Background: I copied the text part of this website https://www.cyberciti.biz/faq/linux-unix-bsd-is-ntp-client-working/ and pasted it into a note. This error occured, but I've narrowed it down.)

It would be nice, if your linter plugin could recognize issues like this and repair them.

@merlinuwe merlinuwe added the bug Something isn't working label Apr 6, 2024
@pjkaufman
Copy link
Collaborator

Hey @merlinuwe . I am having a bit of trouble understanding exactly what happened here. I have some speculation around this which leads me to believe this a bug with move tags to frontamatter. I am guessing this rule is enable and it assuming that #\`` is a tag (that would be a regex fix to fix that issue if it is causing the issue). The tag array type is probably what is causing the removal of ]and]` which is valid in Obsidian, but not elsewhere).

However I am not sure if that is the case. Could you provide your data.json or confirm that disabling that rule fixes the problem? If it is caused by that I can probably fix it pretty easily by adding ``` to the list of invalid tag characters.

@merlinuwe
Copy link
Author

Sure, here is the file.

data.json

@pjkaufman
Copy link
Collaborator

Sorry about the delay. I believe I have a fix for this issue.

@pjkaufman
Copy link
Collaborator

The changes for this should now be on master and should go out with the next release. Please let us know if either is not the case.

@pjkaufman pjkaufman added yaml YAML related issues or features resolution/update-made A change has been made that should resolve this issue or request reproducible labels Apr 22, 2024
@pjkaufman pjkaufman self-assigned this Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working reproducible resolution/update-made A change has been made that should resolve this issue or request yaml YAML related issues or features
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants