Documents in Gitlab the have the following structure are highlighted the wrong way.
I think it just confuses the syntax highlighter.
HTML -> JS -> Comment -> backtick (grave accent) -> HTML tag -> quotes.
Example:
<!DOCTYPE html><htmllang="en"><head><script>varjs_here=true;// Comment in JS// Backtick comment: `all fine`// Backtick comment with html: `<p></p>` Something already seems off// Backtick comment with html and quotes `<pclass="test">` Now everything is wrong. // all text below is also in the quote or tag // Even JS code var js_here = false; function test() { var x = 5; var y = x; }</script></head><body></body></html>
Is there a workaround for this until this issue is addressed? This is pretty painful if you use something like styled-components that makes extensive use of template literals.
Contributions like this are vital to help make GitLab a better product.
We would be grateful for your help in verifying whether your bug report requires further attention from the team. If you think this bug still exists, and is reproducible with the latest stable version of GitLab, please comment on this issue.
This issue has been inactive for more than 12 months now and based on the policy for inactive bugs, will be closed in 7 days.
Thanks for your contributions to make GitLab better!
Contributions like this are vital to help make GitLab a better product.
We would be grateful for your help in verifying whether your bug report requires further attention from the team. If you think this bug still exists, and is reproducible with the latest stable version of GitLab, please comment on this issue.
This issue has been inactive for more than 12 months now and based on the policy for inactive bugs, will be closed in 7 days.
Thanks for your contributions to make GitLab better!
Contributions like this are vital to help make GitLab a better product.
We would be grateful for your help in verifying whether your bug report requires further attention from the team. If you think this bug still exists, and is reproducible with the latest stable version of GitLab, please comment on this issue.
This issue has been inactive for more than 12 months now and based on the policy for inactive bugs, will be closed in 7 days.
Thanks for your contributions to make GitLab better!
Issue is present as can be seen above.
But my hopes for getting this fixed are very low, but lets give it an other year. (as the issue is 3 years old now)
Contributions like this are vital to help make GitLab a better product.
We would be grateful for your help in verifying whether your bug report requires further attention from the team. If you think this bug still exists, and is reproducible with the latest stable version of GitLab, please comment on this issue.
This issue has been inactive for more than 12 months now and based on the policy for inactive bugs, will be closed in 7 days.
Thanks for your contributions to make GitLab better!