Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Oct 12, 2024
1 parent ba48444 commit 370b9ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/glow/src/glow.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,11 @@ export function parseSyntax(lines, lang, prefix = true) {

// highlighted line
const c = line[0]
const wrap = !prefix ? false : isMD(lang) ? (c == '|' && 'dfn') : PREFIXES[c]
const wrap = prefix && (isMD(lang) ? (c == '|' && 'dfn') : PREFIXES[c])
if (wrap) line = (line[1] == ' ' ? ' ' : '') + line.slice(1)

// escape character
if (c == '\\') line = line.slice(1)
if (!prefix && c == '\\') line = line.slice(1)

html.push({ line, wrap })
}
Expand Down

0 comments on commit 370b9ec

Please sign in to comment.