mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 20:22:18 +00:00
parent
02af69ddf2
commit
f122bebae7
@ -97,7 +97,7 @@ function highlight() {
|
||||
function highlightElem(elem) {
|
||||
const innerCodeElem = elem.querySelector('code[class^=language-]');
|
||||
elem.innerHTML = elem.innerHTML.replace(/<br\s*[\/]?>/gi ,'\n');
|
||||
const content = elem.textContent.trim();
|
||||
const content = elem.textContent;
|
||||
|
||||
let mode = '';
|
||||
if (innerCodeElem !== null) {
|
||||
|
Loading…
Reference in New Issue
Block a user