Skip to content

Instantly share code, notes, and snippets.

@onlurking
Created August 27, 2021 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onlurking/ceec96dcf5e909290e6ae6b8a9b59caf to your computer and use it in GitHub Desktop.
Save onlurking/ceec96dcf5e909290e6ae6b8a9b59caf to your computer and use it in GitHub Desktop.
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-blockid {
visibility: hidden;
}
.cm-blockid::first-letter
{
visibility: visible;
font-weight: 800;
}
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-task.cm-meta,
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-task.cm-property {
color: transparent;
position: relative;
}
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-task.cm-meta:after,
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-task.cm-property:after {
content: "☐";
position: absolute;
top: -6px;
left: -3px;
color: var(--text-normal);
font-size: 22px;
font-weight: 100;
}
div:not(.CodeMirror-activeline)>.CodeMirror-line .cm-formatting-header {
display: none !important;
}
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-task.cm-property:after {
content: "☒";
}
.cm-link {
color: var(--text-accent) !important;
}
.cm-url {
color: var(--text-muted) !important;
}
div:not(.CodeMirror-activeline)>.CodeMirror-line .cm-formatting-header {
display: none;
}
/* Hide Bold, Italic, Strikethrough Syntax */
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-strong,
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-em,
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-strikethrough{
display: none !important;
}
/* Remove markdown clutter */
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-string.cm-url,
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-link,
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-link:not(.cm-link),
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-hmd-barelink,
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-tag {
display: none !important;
}
/* Turn -lists into bullets as you type*/
span.cm-formatting-list-ul {
visibility: hidden !important;
}
span.cm-formatting-list-ul:after {
content: '• ';
margin-left: -12px;
color: var(--text-muted) !important;
visibility: visible !important;
}
span.cm-hmd-indent-in-quote {
margin-left: 8px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment