Skip to content

Commit

Permalink
fix: Highlight encoding (#2558)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Aug 1, 2023
1 parent 94fb957 commit 717f175
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions frontend/web/components/Highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,6 @@ class Highlight extends React.Component {

highlightCode = () => {
const nodes = this.el.querySelectorAll('pre code')
if (nodes[0] && nodes[0].innerHTML && nodes[0].innerHTML.match(/[<>]/)) {
if (!this.state.focus) {
nodes[0].innerHTML = nodes[0].innerText
}
setTimeout(() => {
this.highlightCode()
}, 100)
return
}
if (typeof hljs !== 'undefined') {
for (let i = 0; i < nodes.length; i++) {
hljs.highlightBlock(nodes[i])
Expand Down

3 comments on commit 717f175

@vercel
Copy link

@vercel vercel bot commented on 717f175 Aug 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 717f175 Aug 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs.flagsmith.com
docs-flagsmith.vercel.app
docs-git-main-flagsmith.vercel.app
docs.bullet-train.io

@vercel
Copy link

@vercel vercel bot commented on 717f175 Aug 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.