mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-03 09:34:03 +08:00
parent
49386b42da
commit
e8cfb4f2be
@ -111,7 +111,7 @@ function highlightWithin(parent) {
|
|||||||
function highlightElem(elem) {
|
function highlightElem(elem) {
|
||||||
const innerCodeElem = elem.querySelector('code[class^=language-]');
|
const innerCodeElem = elem.querySelector('code[class^=language-]');
|
||||||
elem.innerHTML = elem.innerHTML.replace(/<br\s*[\/]?>/gi ,'\n');
|
elem.innerHTML = elem.innerHTML.replace(/<br\s*[\/]?>/gi ,'\n');
|
||||||
const content = elem.textContent;
|
const content = elem.textContent.trimEnd();
|
||||||
|
|
||||||
let mode = '';
|
let mode = '';
|
||||||
if (innerCodeElem !== null) {
|
if (innerCodeElem !== null) {
|
||||||
|
@ -238,7 +238,6 @@ code {
|
|||||||
padding: 1px 3px;
|
padding: 1px 3px;
|
||||||
white-space:pre-wrap;
|
white-space:pre-wrap;
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
margin-bottom: 1.2em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
span.code {
|
span.code {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user