Skip to content
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

Is there support colons in replacement string? #86

Closed
abhmul opened this issue Feb 25, 2023 · 1 comment
Closed

Is there support colons in replacement string? #86

abhmul opened this issue Feb 25, 2023 · 1 comment

Comments

@abhmul
Copy link

abhmul commented Feb 25, 2023

I am trying to do add the following replacement to the shorthand list:

tdiag:\begin{CD} A @>f>> B\\ @.     {_{\rlap{\ g\circ f}}\style{display: inline-block; transform: rotate(30deg)}{{\xrightarrow[\rule{4em}{0em}]{}}}} @VVgV\\  @. D \end{CD};

However, the ":" after display seems to be causing an issue with parsing. When doing replacement, nothing after "display" is included. Is there a way to allow parsing-related characters like ":" in the replacement string?

@joeyuping
Copy link
Owner

Hi! @abhmul

I have made some changes to allow for ":" in custom shorthand, by using ":::" as the delimiter instead of ":".
However, to allow backward compatibility, the usual ":" delimiter still works, when there is no ":::" in the parameter.

Which means that, to have ":" inside the snippet, one will need to change all ":" in the original parameter into ":::".

Hope this works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants