You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wrap the expression in what SugarCube calls backquotes (`).
I'm not a huge fan of this feature since the syntax conflicts with JavaScript's template literals, but having to set a temporary variable for every invocation isn't great either.
Could you add syntax highlighting support for JavaScript expressions inside backquotes?
Note: Template literals can still be used in macros that expect an expression. For example, compare
so disambiguating them might be tricky. On the plus side, I don't think you can pass expressions to custom macros (widgets) except through the backquote syntax.
The text was updated successfully, but these errors were encountered:
To pass an expression to a macro, you can either:
I'm not a huge fan of this feature since the syntax conflicts with JavaScript's template literals, but having to set a temporary variable for every invocation isn't great either.
Could you add syntax highlighting support for JavaScript expressions inside backquotes?
Note: Template literals can still be used in macros that expect an expression. For example, compare
to
so disambiguating them might be tricky. On the plus side, I don't think you can pass expressions to custom macros (widgets) except through the backquote syntax.
The text was updated successfully, but these errors were encountered: