Skip to content

Hyperlink references involving braces are not rendered properly #189

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

Open
stof opened this issue Mar 4, 2025 · 3 comments
Open

Hyperlink references involving braces are not rendered properly #189

stof opened this issue Mar 4, 2025 · 3 comments

Comments

@stof
Copy link
Member

stof commented Mar 4, 2025

https://symfony.com/doc/current/reference/configuration/twig.html#autoescape-service-method is not rendered properly right now.

source code:

If the service defined in ``autoescape_service`` is invocable (i.e. it defines
the `__invoke() PHP magic method`_) you can omit this option.
.. _`__invoke() PHP magic method`: https://www.php.net/manual/en/language.oop5.magic.php#object.invoke

Rendered output:
Image

@OskarStark

This comment has been minimized.

@stof

This comment has been minimized.

@alamirault
Copy link
Contributor

I dig a bit and this behavior come from doctrine/rst-parser

https://github.com/doctrine/rst-parser/blob/0.5.x/lib/Span/SpanProcessor.php#L171-L174

// a link starting with _ is not a link - return original string
if (substr($link, 0, 1) === '_') {
    return $match[0];
}

(Introduced in doctrine/rst-parser#79 (comment))

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

No branches or pull requests

3 participants