soulsands / trilium-chat

Chat plugin highly integrated with Trilium
https://soulsands.github.io/trilium-chat/
GNU Affero General Public License v3.0
73 stars 9 forks source link

{{activeNote}} isn't able to load any text with styles #2

Closed Lolabird closed 1 year ago

Lolabird commented 1 year ago

Hi! First off cool plugin!

I've been playing around with the plugin today and noticed that the prompts with {{activeNote}} won't load any notes into the chat that have any kind of styling on them - header, bullet points, etc. It also doesn't support webView notes. I may do more tests later to see if any other note types have issues.

soulsands commented 1 year ago

Hi there! Thank you for trying out the plugin and sharing your feedback.

Regarding your issue, {{activeNote}} only supports text/code and text note is not properly parsed for now. I apologize for any inconvenience this may cause.

BTW, could you help me imporve expressions of the document, user interface, among other things? I'm not confident in my knowledge of the correct terminology as a non-native speaker.

Lolabird commented 1 year ago

Thanks for replying! And sure, I'll give the docs a look and do a pull request if I find anything that needs fixing. As far as code, I'm still learning, so I'll probably just open issues if I find anything for now.

soulsands commented 1 year ago

Thanks! And the {{activeNote}} is handled with a tradeoff which expained in the document. Any suggestion would be appreciated. You have a good sense of design.

Lolabird commented 1 year ago

I just saw that fix today! It's working great so far! I'll keep testing it, but I'll close this issue out for now. And thanks for the compliment :smiley: