diff --git a/app/components/Editor.js b/app/components/Editor.js index 4e66a649..4c3cb476 100644 --- a/app/components/Editor.js +++ b/app/components/Editor.js @@ -105,11 +105,15 @@ const StyledEditor = styled(RichMarkdownEditor)` /* ref: https://stackoverflow.com/a/28824157 */ .heading-name::before { content: ""; - display: block; + display: ${(props) => (props.readOnly ? "block" : "none")}; height: 72px; margin: -72px 0 0; } + .heading-anchor { + margin-top: 72px !important; + } + p { a { color: ${(props) => props.theme.text};