mirror of
https://github.com/artegoser/AnoPaper.git
synced 2024-11-05 20:43:57 +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 }) {
|
||||
let text = children[0].props.children[0];
|
||||
let oneline = text.indexOf("\n") <= 1;
|
||||
console.log(oneline);
|
||||
return (
|
||||
<pre className={oneline ? "" : "blog-pre"}>
|
||||
{!oneline && <CodeCopyBtn text={text} />}
|
||||
|
|
Loading…
Reference in a new issue