Skip to content

Can't escape/cancel string show rules anymore in 0.12.0-rc1 #5199

Closed as not planned

Description

@Andrew15-5

Description

Found a regression:t

#[
  #show "a": "b"
  a \a
]

#[
  #show "aa": "b"
  aa \aa
]

#[
  #show "aaa": "b"
  aaa \aaa
]

v0.12.0-rc1:

image

previous versions:

image

Additionally, since we are on the topic of escaping show rulse, why escaping a single-symbol string show rule doesn't work in any version? IMO, it should work for any length of the string. So, you can also consider this a (long-standing) sub-bug.

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    on Oct 13, 2024
  2. changed the title [-]Can't escape/cancel string show rules[/-] [+]Can't escape/cancel string show rules anymore in 0.12.0-rc1[/+] on Oct 13, 2024
  3. laurmaedje commented on Oct 13, 2024

    @laurmaedje
    Member

    They can't be escaped anymore precisely because the bug #86 was fixed. The fact that they wouldn't match previously was the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions