-
Notifications
You must be signed in to change notification settings - Fork 189
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
Fix adminition that had '|| @caption' appended #142
Conversation
This is definitely a bug, though I'm not sure the fix has the desired result. I think it needs to be:
Slim is clearly getting confused about precedence. Another way to write it is:
though that has slightly different behavior. |
Slim syntax is not so complicated, As you’ve figured out, you must wrap it in parenthesis:
|
I say that only because it differs from Ruby rules. In Ruby, everything to the right of the equal sign is implicitly contained in round brackets. To Slim's credit, we're not really talking about the same equals sign since this is an attribute list. So it should look more like an entry in a Hash (map) definition, which would require the brackets. |
I've tracked the regression to this commit: e6344890#diff-a550ba4d478c3d43dff573f7d35df4de. I thought the PR was missing a fix (the other Before I merge it however, I would like #131 to go in since there's a folder re-org in there and I would have to rebase #131 again which I would rather avoid. |
Can you rebase your pull request please? Basically, Thanks! |
👍 |
When making slides and using the admonition block, a "|| @caption" was appended. This changes the parenthesis, to where I think it should be, adding the caprion only if there is no textlabel