diff --git a/browser/main/HomePage/ArticleDetail/ArticleEditor.js b/browser/main/HomePage/ArticleDetail/ArticleEditor.js index a55f7a4d..7538ed60 100644 --- a/browser/main/HomePage/ArticleDetail/ArticleEditor.js +++ b/browser/main/HomePage/ArticleDetail/ArticleEditor.js @@ -78,7 +78,12 @@ export default class ArticleEditor extends React.Component { mode={this.props.mode} code={this.props.content} /> -
Press ESC to watch Preview
+ {this.props.mode === 'markdown' + ? ( +
Press ESC to watch Preview
+ ) + : null + } ) } diff --git a/browser/styles/mixins/marked.styl b/browser/styles/mixins/marked.styl index 8decfca9..db7aa1e3 100644 --- a/browser/styles/mixins/marked.styl +++ b/browser/styles/mixins/marked.styl @@ -12,9 +12,12 @@ marked() color lighten(brandColor, 5%) text-decoration underline background-color alpha(#FFC95C, 0.3) - transform scale(1.2) &:visited color brandColor + &.lineAnchor + padding 0 + margin 0 + display inline hr border-top none border-bottom solid 1px borderColor