mirror of
https://github.com/artegoser/AnoPaper.git
synced 2024-11-22 03:46:22 +03:00
fix: log
This commit is contained in:
parent
551190066a
commit
990ef17d58
1 changed files with 0 additions and 1 deletions
|
@ -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} />}
|
||||||
|
|
Loading…
Add table
Reference in a new issue