mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-30 15:42:41 +01: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