mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-21 22:36:05 +08:00
@ -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) {
|
||||
|
Reference in New Issue
Block a user