MarkBind/markbind

Custom list icons syntax: make the space before `{` optional

Closed this issue · 3 comments

Current:
* item {icon="fas-home"} works
* item{icon="fas-home"} does not work

Suggestion: make the 2nd one work as well

@SPWwj can confirm this behavior? Any thoughts on the above suggestion?

SPWwj commented

@SPWwj can confirm this behavior? Any thoughts on the above suggestion?

I can't reproduce the bug on my end;
both syntax work for me:
image

Could you share the exact code that causes the bug?

I think this issue appears to be related to the behavior of the markdown-it-attrs plugin. The attributes only affect the nearest tag for inline binding.
image

@SPWwj forgot to respond to this earlier. I can't reproduced this now, in isolation. Likely it was influenced by something else in the surrounding area when I observed it. Will close for now.