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={{ options={{
hideIcons: ['heading', 'image', 'fullscreen', 'side-by-side'], hideIcons: ['heading', 'image', 'fullscreen', 'side-by-side'],
previewRender(plainText) { previewRender(plainText) {
const preview = <MarkdownPreview content={plainText}/>; const preview = <MarkdownPreview content={plainText}/>;
return ReactDOMServer.renderToString(preview); return ReactDOMServer.renderToString(preview);
} }
}} }}
/> />

View file

@ -12,8 +12,8 @@ const schema = { ...defaultSchema };
schema.protocols.href[3] = 'lbry'; schema.protocols.href[3] = 'lbry';
type MarkdownProps = { type MarkdownProps = {
content: string, content: string,
promptLinks?: boolean, promptLinks?: boolean,
}; };
const SimpleLink = ({ href, title, children }) => (<a href={href} title={title}>{children}</a>); const SimpleLink = ({ href, title, children }) => (<a href={href} title={title}>{children}</a>);

View file

@ -1,4 +1,3 @@
.editor-preview,
.markdown-preview { .markdown-preview {
margin: 0; margin: 0;
@ -79,6 +78,12 @@
font-size: 1em; font-size: 1em;
font-family: Consolas, 'Lucida Console', 'Source Sans', monospace; font-family: Consolas, 'Lucida Console', 'Source Sans', monospace;
} }
a {
font-size: 1em;
color: var(--btn-external-color);
display: inline-block;
}
} }
blockquote { blockquote {

View file

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