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] Incorrect display of the card content when the title embedded-link is inserted in not English note. #841

Closed
Steindvart opened this issue Jan 13, 2024 · 1 comment · Fixed by #842
Labels
bug Something isn't working
Projects

Comments

@Steindvart
Copy link
Contributor

Describe the bug
If I use an embedded header link as the body of a multiline card (?), then this body is displayed incorrectly when review. The content is shown according to a completely different heading of the note.

Moreover, this happened only with a card from a note not in English (in Russian). A similar card from a similar note, but completely in English, works fine.

These are the files for reproduce and behavior comparison:
Когнитивные искажения.md - Russian note (bug is reproducing)
Cognitive distortions.md – English note (works well)

To Reproduce

  1. Download the note, which reproduce bug Когнитивные искажения.md - Russian note (bug is reproducing).
  2. Add note to your development Obsidian vault.
  3. Go to "Review flashcards" modal.
  4. Find card from note with "Как можно классифицировать когнитивные искажения?" ("How can cognitive distortions be classified?") question.
  5. Click "Show answer".
  6. The answer will not contain the information that was expected.

Expected behavior
The information is expected to match with the answer indicated in the description of the card. As it happens in the English version of a similar note: Cognitive distortions.md – English note (works well).

Screenshots

Bad behavior from Russian note with bug reproduce:

image
image

Good behavior from English note:

image
image

Versions (please complete the following information):

  • OS: Windows 11 (21H2)
  • Obsidian version: v1.5.3
  • Plugin version: v1.11.0
  • If on desktop, Installer version: 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) obsidian/1.4.16 Chrome/114.0.5735.289 Electron/25.8.1 Safari/537.36
@Steindvart Steindvart added the bug Something isn't working label Jan 13, 2024
@Steindvart
Copy link
Contributor Author

PS:
By "cognitive distortions" i mean "cognitive biases". I translated it quickly, just to check how it would work in English. Therefore, I made such an inaccuracy :(

These are different concepts. But in Russian, they can be called the same way.

st3v3nmw pushed a commit that referenced this issue Jan 15, 2024
* Remove only non-letter symbols from header string.

* `changelog.md` is updated.

* Code style fixes.
@st3v3nmw st3v3nmw added this to To do in Roadmap via automation Jan 16, 2024
@st3v3nmw st3v3nmw moved this from To do to Done (available in next release) in Roadmap Jan 16, 2024
@st3v3nmw st3v3nmw moved this from Done (available in next release) to Shipped! in Roadmap Jan 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
Projects
Roadmap
Shipped!
Development

Successfully merging a pull request may close this issue.

1 participant