symfony / symfony-docs

The Symfony documentation
https://symfony.com/doc
Other
2.15k stars 5.1k forks source link

Yaml number-formatting issue #20078

Closed homersimpsons closed 1 month ago

homersimpsons commented 1 month ago

Reading the yaml documentation in https://symfony.com/doc/current/components/yaml.html#numeric-literals we can see the following code block: image

Here, the numbers are all formatted as strings, except for the 3. for the parameters.pi property.

The correct rendering should be: image

This may be a highlightjs issue (it looks like this project is using this library).

Libraries:

javiereguiluz commented 1 month ago

@homersimpsons good catch!

We use a custom-made parser which makes use of some PHP highlighter to produce the final results. So, this kind of bugs need to be fixed in that other project.

I've created an issue using your information: https://github.com/symfony-tools/docs-builder/issues/177

So, let's close this one in favor of the other repository issue. Thanks!