This commit is contained in:
Artemy 2023-04-02 11:30:27 +03:00
parent 551190066a
commit 990ef17d58

View file

@ -44,7 +44,6 @@ function RenderMarkdown(props) {
function Pre({ children }) { function Pre({ children }) {
let text = children[0].props.children[0]; let text = children[0].props.children[0];
let oneline = text.indexOf("\n") <= 1; let oneline = text.indexOf("\n") <= 1;
console.log(oneline);
return ( return (
<pre className={oneline ? "" : "blog-pre"}> <pre className={oneline ? "" : "blog-pre"}>
{!oneline && <CodeCopyBtn text={text} />} {!oneline && <CodeCopyBtn text={text} />}