-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Allow explicit label escaping? #19
Comments
I don't have time to work on this in the meantime. PR are welcome |
@fmthoma I just realized that you can already do this via double quote | "a.to(b)" |. It will escape parsing text that are in between the quotes |
@ivanceras Thanks for the hint! I've just tried it, and (at least in the editor), the rest of the line after the closing
renders like
Strangely, an empty label at the end of the line fixes the problem:
|
svgbob will render strings in double quotes literally, and not replace any characters by svg paths. However, as mentioned in ivanceras#19, there is currently a bug that the last part of a line after the last closing double quote character is ignored: +-----------+---+ | "a.to(b)" | c | +-----------+---+ renders like +-----------+---+ | "a.to(b)" +-----------+---+ which is fixed in this pull request.
Some labels contain characters (or character combinations) that are rendered as paths, although this might not be intended by the user. Currently, there does not seem to be a way to prevent this (correct me if I'm wrong?).
Example:
The
o(
into(b)
are rendered as a small circle and an arc of a bigger circle, rather than the characterso
and(
.Proposal:
Add the possibility to escape labels, e.g. using backticks. Everything between backticks within one line will be rendered as text (single label, with normal word spacing):
The text was updated successfully, but these errors were encountered: