You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect Rendering of .gitconfig File Contents #2720
Description:
When attempting to display the contents of a .gitconfig file in INI format, there is an issue with the rendering of comments. Currently, anything after a semicolon is treated as a comment, even if it is not intended to be. This problem becomes apparent when using tools like mkdocs to display the file contents.
Steps to Reproduce:
Create a .gitconfig file with the following contents:
```cfg
[alias]
test = "some stuff with a semi colon ; and then more stuff"
test2 = "some more stuff with a semi colon ; and then more stuff" # (1)!
```
Use mkdocs or a similar tool to display the file contents.
Expected Result:
The .gitconfig file should be displayed accurately, showing the contents as intended without any rendering issues.
Actual Result:
The rendered display of the .gitconfig file, using mkdocs, shows incorrect rendering. The comments associated with the "test2" alias are consumed by an annotation, leading to missing text in the rendered output.
Additional Information:
Here's a real-world example of a config value where the semicolon does not indicate a comment:
Activity