tidy up
This commit is contained in:
parent
45637a050b
commit
151ad9062c
4 changed files with 10 additions and 6 deletions
|
@ -57,8 +57,8 @@ export class FormField extends React.PureComponent<Props> {
|
|||
options={{
|
||||
hideIcons: ['heading', 'image', 'fullscreen', 'side-by-side'],
|
||||
previewRender(plainText) {
|
||||
const preview = <MarkdownPreview content={plainText}/>;
|
||||
return ReactDOMServer.renderToString(preview);
|
||||
const preview = <MarkdownPreview content={plainText}/>;
|
||||
return ReactDOMServer.renderToString(preview);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
|
|
@ -12,8 +12,8 @@ const schema = { ...defaultSchema };
|
|||
schema.protocols.href[3] = 'lbry';
|
||||
|
||||
type MarkdownProps = {
|
||||
content: string,
|
||||
promptLinks?: boolean,
|
||||
content: string,
|
||||
promptLinks?: boolean,
|
||||
};
|
||||
|
||||
const SimpleLink = ({ href, title, children }) => (<a href={href} title={title}>{children}</a>);
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
.editor-preview,
|
||||
.markdown-preview {
|
||||
margin: 0;
|
||||
|
||||
|
@ -79,6 +78,12 @@
|
|||
font-size: 1em;
|
||||
font-family: Consolas, 'Lucida Console', 'Source Sans', monospace;
|
||||
}
|
||||
|
||||
a {
|
||||
font-size: 1em;
|
||||
color: var(--btn-external-color);
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
blockquote {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
table.table,
|
||||
.editor-preview table,
|
||||
.markdown-preview table {
|
||||
word-wrap: break-word;
|
||||
max-width: 100%;
|
||||
|
|
Loading…
Reference in a new issue