mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-07 05:24:40 +08:00
Fix highlighting when source includes HTML tags
This commit is contained in:
parent
18718f13be
commit
62973d17aa
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ export function highlight(code, language) {
|
|||
tree,
|
||||
getHighlightStyle(),
|
||||
(code, classes) => {
|
||||
html += `<span class="${classes}">${code}</span>`;
|
||||
html += `<span class="${classes}">${escapeHtml(code)}</span>`;
|
||||
},
|
||||
() => {
|
||||
html += "<br />";
|
||||
|
|
Loading…
Add table
Reference in a new issue