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

"Info" keyword is not removed from admonition when frame is layed out. #1468

Closed
diyoyo opened this issue Mar 19, 2025 · 3 comments
Closed

"Info" keyword is not removed from admonition when frame is layed out. #1468

diyoyo opened this issue Mar 19, 2025 · 3 comments

Comments

@diyoyo
Copy link
Member

diyoyo commented Mar 19, 2025

Description

As shown in the screen recording, while other keywords do disappear after regex triggers the outlaying event, when it comes to the info adminition, it persists.

250319_Bug.Report_TriliumNext_Info.admonition.mov

TriliumNext Version

0.92.4

What operating system are you using?

macOS

What is your setup?

Local + server sync

Operating System Version

MacOS latest + Linux Debian latest

Error logs

No response

@diyoyo
Copy link
Member Author

diyoyo commented Mar 19, 2025

Note that yesterday, I attempted to report the bug, but while recording the video, it worked out fine!
So there is something special about the conditions that introduced the bug again today, and I don't know what.

@eliandoran
Copy link
Contributor

@diyoyo , this is actually by design:

It's possible to insert an admonition simply by typing:

  • !!! note
  • !!! tip
  • !!! important
  • !!! caution
  • !!! warning

In addition to that, it's also possible to type !!! followed by any text, case in which a default admonition type will appear (note) with the entered text inside it.

Basically this allows you to start typing an admonition text without mentioning its type. E.g. !!! The will create an admonition with The already inserted.

info is not a valid admonition type for Trilium.

So, the bug might be the other way around: it is a bug if info is not inserted in the admonition. If you can reproduce it consistently, let me know.

@diyoyo
Copy link
Member Author

diyoyo commented Mar 20, 2025

@diyoyo , this is actually by design:

It's possible to insert an admonition simply by typing:

  • !!! note
  • !!! tip
  • !!! important
  • !!! caution
  • !!! warning

In addition to that, it's also possible to type !!! followed by any text, case in which a default admonition type will appear (note) with the entered text inside it.

Basically this allows you to start typing an admonition text without mentioning its type. E.g. !!! The will create an admonition with The already inserted.

info is not a valid admonition type for Trilium.

So, the bug might be the other way around: it is a bug if info is not inserted in the admonition. If you can reproduce it consistently, let me know.

Thanks, now that you mention it, it makes sense that "info" is not a keyword (although the icon has an "i" in it, right 😉 ?).

It is very likely that my French makes me indistinguishably use either "note" or "info", depending on the language to which my brain switched in the past 5 min.

Hence the apparent bug.

I'll keep digging, just in case, and I'll reopen this if I'm sure it happened again.

@diyoyo diyoyo closed this as completed Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants