Skip to content

Commit

Permalink
[sanitize]
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottAgirs committed Mar 24, 2020
1 parent 5ea72fa commit c5a94ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
10 changes: 3 additions & 7 deletions components/dataEntry/TextEditor/components/Element.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,13 @@ const Element = ({ attributes, children, element }) => {
case 'list-item':
return <li {...attributes}>{children}</li>;
case 'code-line':
return (
<StyledCodeLine className="codeLine" {...attributes}>
{children}
</StyledCodeLine>
);
return <StyledCodeLine {...attributes}>{children}</StyledCodeLine>;
case 'numbered-list':
return <ol {...attributes}>{children}</ol>;
case 'code-block':
return (
<StyledCodeBlockPre className="line-numbers" {...attributes}>
<code className="language-js">{children}</code>
<StyledCodeBlockPre {...attributes}>
<code className="language-jsx">{children}</code>
</StyledCodeBlockPre>
);
default:
Expand Down
15 changes: 3 additions & 12 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,7 @@ const GlobalStyle = createGlobalStyle`
padding-top: 64px;
position: relative;
}
code,pre {
* {
line-height: 1.5;
}
padding: 0.2em 0.4em;
margin: 0;
font-size: 85%;
background-color: rgba(27, 31, 35, 0.05);
border-radius: 3px;
}
h1,
h2,
h3,
Expand Down Expand Up @@ -100,9 +91,9 @@ const GlobalStyle = createGlobalStyle`
margin: 0.7em;
font-size: 0.75em;
}
pre {
/* pre {
padding: 2em !important;
}
} */
`;

class AppWrapper extends App {
Expand Down

0 comments on commit c5a94ec

Please sign in to comment.