We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
&&
What happened: Post with && wrapped in code tag turn to &&.
&&
Post Link: https://telescope.cdot.systems/search/?text=Static%20Analysis%20tooling%20%F0%9F%9B%A0&filter=post
What should have happened: && should render correctly
Anything else we need to know?: Related to this fix #2337.
The file causing this issue
telescope/src/backend/utils/html/syntax-highlight.js
Lines 43 to 59 in 0791570
Sample of the data from the feed looks like this:
<pre class="highlight shell"><code>npx husky-init <span class="o">&&</span> npm <span class="nb">install\n</span>npm <span class="nb">install</span> <span class="nt">--save-dev</span> prettier pretty-quick\n</code></pre>
When passing to the hljs.highlightAuto It becomes
hljs.highlightAuto
npx husky<span class="hljs-operator">-</span>init <span class="hljs-operator">&</span>amp;<span class="hljs-operator">&</span>amp; npm install npm install <span class="hljs-comment">--save-dev prettier pretty-quick</span>
I think the regex fails for this case Passing to the regex returns
npx husky<span class="hljs-operator">-</span>init <span class="hljs-operator">&</span>amp<span class="hljs-operator">&</span>amp npm install npm install <span class="hljs-comment">--save-dev prettier pretty-quick</span>
Environment:
The text was updated successfully, but these errors were encountered:
I'm gonna take this issue
Sorry, something went wrong.
Kevan-Y
Successfully merging a pull request may close this issue.
What happened:
Post with
&&
wrapped in code tag turn to&&
.Post Link: https://telescope.cdot.systems/search/?text=Static%20Analysis%20tooling%20%F0%9F%9B%A0&filter=post
What should have happened:
&&
should render correctlyAnything else we need to know?:
Related to this fix #2337.
The file causing this issue
telescope/src/backend/utils/html/syntax-highlight.js
Lines 43 to 59 in 0791570
Sample of the data from the feed looks like this:
When passing to the
hljs.highlightAuto
It becomes
I think the regex fails for this case
Passing to the regex returns
Environment:
The text was updated successfully, but these errors were encountered: