diff --git a/src/renderer/component/common/form-components/form-field.jsx b/src/renderer/component/common/form-components/form-field.jsx index bbeefe5ad..6b0a9b234 100644 --- a/src/renderer/component/common/form-components/form-field.jsx +++ b/src/renderer/component/common/form-components/form-field.jsx @@ -57,8 +57,8 @@ export class FormField extends React.PureComponent { options={{ hideIcons: ['heading', 'image', 'fullscreen', 'side-by-side'], previewRender(plainText) { - const preview = ; - return ReactDOMServer.renderToString(preview); + const preview = ; + return ReactDOMServer.renderToString(preview); } }} /> diff --git a/src/renderer/component/common/markdown-preview.js b/src/renderer/component/common/markdown-preview.js index e50210aa2..2c28163aa 100644 --- a/src/renderer/component/common/markdown-preview.js +++ b/src/renderer/component/common/markdown-preview.js @@ -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 }) => ({children}); diff --git a/src/renderer/scss/component/_markdown-preview.scss b/src/renderer/scss/component/_markdown-preview.scss index 99b377370..2a04516e4 100644 --- a/src/renderer/scss/component/_markdown-preview.scss +++ b/src/renderer/scss/component/_markdown-preview.scss @@ -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 { diff --git a/src/renderer/scss/component/_table.scss b/src/renderer/scss/component/_table.scss index 207e0d45b..57c5d98d5 100644 --- a/src/renderer/scss/component/_table.scss +++ b/src/renderer/scss/component/_table.scss @@ -1,5 +1,4 @@ table.table, -.editor-preview table, .markdown-preview table { word-wrap: break-word; max-width: 100%;