ejs-syntax icon indicating copy to clipboard operation
ejs-syntax copied to clipboard

Mixed js and html syntax messes up the highlighting

Open christian-oudard opened this issue 5 years ago • 0 comments


<%
const {page, nav} = locals

function navLink(pageName) {
  if (page == pageName) {
    return `<span>${pageName}</span>`
  } else {
    return `<a href="/${pageName}">${pageName}</a>`
  }
}
%>

In this example, the syntax highlighting breaks on the first < of <span.

christian-oudard avatar Jul 18 '20 00:07 christian-oudard