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

A notextile @ sign entered as == @ == renders a mysterious textileRef:49562390965819c5ae4dc5:1:shelve in the output HTML. #223

Closed
1 of 2 tasks
rwetzlmayr opened this issue Dec 19, 2023 · 0 comments

Comments

@rwetzlmayr
Copy link

Prerequisites

  • Are you running the latest version of PHP-Textile?
  • $ composer update?

Expected behaviour

Use "lorem(dolor == @ == sit)":#ipsum as Textile input.
The rendered HTML is <p><a href="#ipsum" title="dolor @ sit">lorem</a></p>

Actual behaviour

Use "lorem(dolor == @ == sit)":#ipsum as Textile input.
The rendered HTML is <p><a href="#ipsum" title="dolor textileRef:49562390965819c5ae4dc5:1:shelve sit">lorem</a></p>

Steps to reproduce

I am trying to include a literal @ character in the title attribute of a link. An unescaped @ character would introduce a <code> element, so I try to escape this @ character with the == notextile sequence.

Entering the Textile phrase "lorem(dolor == @ == sit)":#ipsum into the blank Textile input box at https://textile-lang.com/doc produces an unexpected HTML output including a textileRef:49562390965819c5ae4dc5:1:shelve chunk

Additional information

PHP-Textile version: The current version employed at https://textile-lang.com/
PHP version: The current version employed at https://textile-lang.com/

@gocom gocom closed this as completed in 31e0df6 Jan 2, 2024
@gocom gocom self-assigned this Jan 2, 2024
@gocom gocom added the Defect label Jan 2, 2024
@gocom gocom added this to the 4.1.0 milestone Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants