Moving previews to client side rendering for consistency
This commit is contained in:
13
frontend/components/Editor/components/Code.js
Normal file
13
frontend/components/Editor/components/Code.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import type { Props } from '../types';
|
||||
|
||||
export default function Code({ children, attributes }: Props) {
|
||||
return (
|
||||
<pre>
|
||||
<code {...attributes}>
|
||||
{children}
|
||||
</code>
|
||||
</pre>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user