Skip to content

Commit

Permalink
Use width and height = 0 to hide markdown syntax because display: non…
Browse files Browse the repository at this point in the history
…e can break selection in some cases
  • Loading branch information
aaron7 committed Jun 10, 2024
1 parent 43bc7f1 commit b45c836
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/* Hide processing instructions when line is not active */
/*
Hide processing instructions when line is not active. Use width and height = 0 because
`display: none` removes the characters from the editor which can affect selection.
*/
:not(.cm-activeLine) > .md-header-processing-instruction {
display: none;
display: inline-block;
width: 0;
height: 0;
overflow: hidden;
}

0 comments on commit b45c836

Please sign in to comment.