[Bug]: YFM-note titles are Russian by default #725

Closed
opened 2026-02-04 21:06:04 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @KredeDK on GitHub (Jun 5, 2025).

Where is the problem occurring?

I encountered the problem while using the application (Frontend)

What browsers are you seeing the problem on?

Firefox

Current behavior

When inserting a note in the description field, while using markdown editor, the title of the note is Russian. This happens in both English and Danish, and probably other languages.

`
{% note info %}

{% endnote %}
`
becomes

Image

A temporary fix is to add a title manually in quotes, eg. "{% note info "Title" %}".

Desired behavior

That the title uses the locale markdown-editor.json file for the correct language

Steps to reproduce

  • Create a card.
  • Click on the description field to open the text editor
  • Select markdown editor and click on "note"
  • Click save in the editor

Other information

No response

Originally created by @KredeDK on GitHub (Jun 5, 2025). ### Where is the problem occurring? I encountered the problem while using the application (Frontend) ### What browsers are you seeing the problem on? Firefox ### Current behavior When inserting a note in the description field, while using markdown editor, the title of the note is Russian. This happens in both English and Danish, and probably other languages. ` {% note info %} {% endnote %} ` becomes ![Image](https://github.com/user-attachments/assets/77a7ebd9-e9b1-4061-a211-5c3954b88793) A temporary fix is to add a title manually in quotes, eg. "{% note info "Title" %}". ### Desired behavior That the title uses the locale markdown-editor.json file for the correct language ### Steps to reproduce - Create a card. - Click on the description field to open the text editor - Select markdown editor and click on "note" - Click save in the editor ### Other information _No response_
Author
Owner

@symonbaikov commented on GitHub (Jun 5, 2025):

I can take this issue to work.

@symonbaikov commented on GitHub (Jun 5, 2025): I can take this issue to work.
Author
Owner

@symonbaikov commented on GitHub (Jun 5, 2025):

TypeError error: Cannot Read Properties of Undefined (Reading 'Warn') suggests that somewhere in the code or in one of the Markdown plugins there is an appeal to the non-existent property of Warn at the object that turned out to be undefined.

Image
@symonbaikov commented on GitHub (Jun 5, 2025): TypeError error: Cannot Read Properties of Undefined (Reading 'Warn') suggests that somewhere in the code or in one of the Markdown plugins there is an appeal to the non-existent property of Warn at the object that turned out to be undefined. <img width="627" alt="Image" src="https://github.com/user-attachments/assets/04308449-817f-4788-8fc6-21659c57ae0e" />
Author
Owner

@meltyshev commented on GitHub (Jun 5, 2025):

Thanks for reporting this!

I can take this issue to work.

Sure. I found here that they use DEFAULT_LANG, which defaults to ru if a translation is not found. Most likely, we just need to set notesAutotitle to false for the plugin to prevent the title from being shown when there's no text.

TypeError error: Cannot Read Properties of Undefined (Reading 'Warn') suggests that somewhere in the code or in one of the Markdown plugins there is an appeal to the non-existent property of Warn at the object that turned out to be undefined.

Image

Hm, how did you get this error?

@meltyshev commented on GitHub (Jun 5, 2025): Thanks for reporting this! > I can take this issue to work. Sure. I found [here](https://github.com/diplodoc-platform/transform/blob/71d062a014b2e627c0bafb1bb6fd205c34baf274/src/transform/plugins/notes/index.ts#L22) that they use `DEFAULT_LANG`, which defaults to `ru` if a translation is not found. Most likely, we just need to set `notesAutotitle` to `false` for the plugin to prevent the title from being shown when there's no text. > TypeError error: Cannot Read Properties of Undefined (Reading 'Warn') suggests that somewhere in the code or in one of the Markdown plugins there is an appeal to the non-existent property of Warn at the object that turned out to be undefined. > > <img alt="Image" width="627" src="https://private-user-images.githubusercontent.com/115481136/451844764-04308449-817f-4788-8fc6-21659c57ae0e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDkxMjI5NzgsIm5iZiI6MTc0OTEyMjY3OCwicGF0aCI6Ii8xMTU0ODExMzYvNDUxODQ0NzY0LTA0MzA4NDQ5LTgxN2YtNDc4OC04ZmM2LTIxNjU5YzU3YWUwZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwNjA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDYwNVQxMTI0MzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01MTUwMjFlZTc2OWZhOGUxMTA3YTViMDIxMjBiMzRjZTViNDIwNTQxYTJhNmRjZGNiMTdiMjliNzI4NzIyNWM5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.1Do4XrfmRCScLdVV-0TAmbBpBrvTdfWyyJyG-r_stiQ"> Hm, how did you get this error?
Author
Owner

@meltyshev commented on GitHub (Jun 5, 2025):

I'm going to commit the fix in a few minutes. I've also added a patch to the editor to prevent the title from being auto-filled when switching between visual and markdown modes. @symonbaikov FYI.

@meltyshev commented on GitHub (Jun 5, 2025): I'm going to commit the fix in a few minutes. I've also added a patch to the editor to prevent the title from being auto-filled when switching between visual and markdown modes. @symonbaikov FYI.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#725