Removed unintended extra lines in code blocks

Fixes #1877
This commit is contained in:
Dan Brown
2020-02-15 14:24:55 +00:00
parent 49386b42da
commit e8cfb4f2be
2 changed files with 1 additions and 2 deletions

View File

@ -111,7 +111,7 @@ function highlightWithin(parent) {
function highlightElem(elem) {
const innerCodeElem = elem.querySelector('code[class^=language-]');
elem.innerHTML = elem.innerHTML.replace(/<br\s*[\/]?>/gi ,'\n');
const content = elem.textContent;
const content = elem.textContent.trimEnd();
let mode = '';
if (innerCodeElem !== null) {