-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[[syntax]] is processed in Markdown code blocks rendering #2168
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
Comments
Are there any solutions/hacks that do not require modifying the code? |
This shell snippet got wrong too, the following code can't show correctly in gitea ( Gitea Version: 1.4.0 )
Result in gitea: [[ ${state} == 'stop' ]] is not shown. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
This can be closed, this issue is not in effect anymore. |
Uh oh!
There was an error while loading. Please reload this page.
I've got a README.md file which includes some kind of ini code blocks. As a subsection is surrounded by two squared brackets, it is evaluated and processed by Gitea as a link. The squared brackets are removed and the code blocks is thus modified... This is problematic since it produces wrong code blocks and can involves someone to make mistakes if he/she just copy & paste it.
For example, if I write the following:
... the produced HTML code will be:
From what I understand in reading the code and trying to alter this unwanted behavior, I found at least two solutions to prevent that:
I tried both solutions and they work. For the first one, I've just commented this line. For the second one, I've replaced this line by
buf.WriteString(token.String())
.As I don't know which behavior could be the best - and if there are others, they have maybe both pro/con, I let you see...
Thanks in advance!
The text was updated successfully, but these errors were encountered: