scottTomaszewski / obsidian-inline-admonitions

MIT License
20 stars 0 forks source link

Seems doesn't work? #11

Closed li0817 closed 5 months ago

li0817 commented 5 months ago

Settings: image

I've tried many times but nothing's change, just plain text as usual. image

scottTomaszewski commented 5 months ago

The admonition needs to be wrapped in backticks (`). In your example, try

`ABC 100`

With a backtick before the "ABC" and a backtick after the "100"

Let me know if that helps

li0817 commented 5 months ago

The admonition needs to be wrapped in backticks (`). In your example, try

`ABC 100`

With a backtick before the "ABC" and a backtick after the "100"

Let me know if that helps

I've tried doing this, but it's still the same as the default inline code. image I've also tried using the default theme of obsidian and turning off all other plug-ins. Still, it remains the same. I don't know where it went wrong, is there any other way to troubleshoot the problem?

scottTomaszewski commented 5 months ago

hmmm thats odd. Can you try looking in the console (Ctrl + Shift + i) to see if there are any errors?

Oh, is this in live-preview mode? I am currently working on getting live-preview mode working, but in the public release its not available.

li0817 commented 5 months ago

hmmm thats odd. Can you try looking in the console (Ctrl + Shift + i) to see if there are any errors?

Oh, is this in live-preview mode? I am currently working on getting live-preview mode working, but in the public release its not available.

Problem solved! Thanks, I really didn't think of that. Once I switch into the reading view, it works properly. It's all good now. image I recommend putting this issue to the document so that others won't run into the same problem.

profucius commented 1 month ago

I am currently working on getting live-preview mode working, but in the public release its not available.

I hope you can find a way to get this working. I'd love to have this plugin working in the Editing view (non-reading view) while I am editing a document.

Edit: It seems to work now after restarting Obsidian for some reason.

scottTomaszewski commented 1 month ago

I am currently working on getting live-preview mode working, but in the public release its not available.

I hope you can find a way to get this working. I'd love to have this plugin working in the Editing view (non-reading view) while I am editing a document.

Edit: It seems to work now after restarting Obsidian for some reason.

So sorry for the failure to communicate. Inline Admonitions should function in Live Preview after a reload. There is a funky issue right now that I have mentioned in the readme: https://github.com/scottTomaszewski/obsidian-inline-admonitions?tab=readme-ov-file#known-issues Its super subtle; my fault.

Anyway, enable the plugin then reload the app and everything should function. Ill try to get to the bottom of the issue

profucius commented 1 month ago

That explains it! Not a huge deal to me at the moment, but glad to hear you're looking into a solution. Your plugin has a lot of use for me!

scottTomaszewski commented 1 month ago

Update: I think this should be fixed in 1.4.6 Seems to work for me at least. Let me know if its still causing issues for you @profucius

profucius commented 1 month ago

It works! This is awesome 🎉