This commit is contained in:
btzr-io 2018-06-10 16:32:30 -06:00
parent 45637a050b
commit 151ad9062c
4 changed files with 10 additions and 6 deletions

View file

@ -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);
}
}}
/>

View file

@ -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>);

View file

@ -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 {

View file

@ -1,5 +1,4 @@
table.table,
.editor-preview table,
.markdown-preview table {
word-wrap: break-word;
max-width: 100%;