.ProseMirror, .ProseMirror-static {
  outline: 0;
  border: 0;
  font-size: 16px;
  white-space: break-spaces;
  &:not(.ProseMirror-static) {
    user-select: text;
  }

  ::selection {
    background-color: rgba($themeColor, 0.25);
    color: inherit;
  }

  p {
    margin: 0;
  }
  .empty {
    margin: 0;
    font-size: 0;
    padding: 0;
  }
  p:first-child:has(br) {
    font-size: 0;
  }
  p:first-child br {
    margin-top: 0;
    font-size: 0;
  }

  ul, ol, li {
    margin: 0;
  }
  ul {
    
    list-style-type: none;
    padding-left: 1.5em;       /* 为伪元素留出空间 */

    li::before {
      content: "•";
      list-style-type: none;
      padding: 0.125em 0;
      float: left;
      margin-right: 0.4em;
    }

    li.empty-li::before {
      font-size: 0;
      content: none !important;
    }
  }

  ol {
    list-style-type: decimal;
    padding-inline-start: 1.25em;

    li {
      list-style-type: inherit;
      padding: 0.125em 0;
      float: left;
      margin-right: 0.4em;
    }
    li.empty-li::before {
      content: none !important;
    }
  }

  code {
    background-color: #f1f1f1;
    padding: 2px 6px;
    margin: 0 1px;
    border-radius: 4px;
    font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  }

  sup {
    vertical-align: super;
    font-size: smaller;
  }
  sub {
    vertical-align: baseline;
  }

  blockquote {
    overflow: hidden;
    padding: 0 1.2em;
    margin: 0.6em 0;
    font-style: italic;
    border-left: 4px solid #e0e0e0;
  }

  [data-indent='1'] {
    padding-left: 1em;
  }
  [data-indent='2'] {
    padding-left: 2em;
  }
  [data-indent='3'] {
    padding-left: 3em;
  }
  [data-indent='4'] {
    padding-left: 4em;
  }
  [data-indent='5'] {
    padding-left: 5em;
  }
  [data-indent='6'] {
    padding-left: 6em;
  }
  [data-indent='7'] {
    padding-left: 7em;
  }
  [data-indent='8'] {
    padding-left: 8em;
  }
}

.ProseMirror-selectednode {
  outline: none !important;
}