Merge pull request #180 from lbryio/empty-markup-fix
no empty markup divs
This commit is contained in:
commit
8e8c9ba231
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ export default path => {
|
||||||
const updatedMarkdown = wikiFinder(partialFinder(renderedMarkdown));
|
const updatedMarkdown = wikiFinder(partialFinder(renderedMarkdown));
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<div class="page__markup">${raw(updatedMarkdown)}</div>
|
${raw(updatedMarkdown)}
|
||||||
`;
|
`;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ function partialFinder(markdownBody) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return markdownBody;
|
return ("<div class=\"page__markup\">" + markdownBody + "</div>").replace(/<div class="page__markup">\s*<\/div>/, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
function wikiFinder(markdownBody) {
|
function wikiFinder(markdownBody) {
|
||||||
|
|
Loading…
Reference in a new issue