.markdown-viewer {
  font-family: var(--font-family) !important;

  .hr {
    border: none;
    height: 1px;
    background-color: var(--ant-color-split);
    border-color: var(--ant-color-split);
  }

  p {
    margin-bottom: 0;
  }

  b {
    font-weight: var(--font-weight-bold);
  }

  h1,
  h2,
  h3,
  h4 {
    font-weight: 700;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-small);
    margin-top: 1em;
  }

  .hj-wrapper {
    margin-top: 16px;
  }

  strong {
    font-weight: var(--font-weight-bold);
  }

  ul {
    margin-bottom: 0;
    padding-left: 20px;
    line-height: 2;
  }

  ol {
    margin-bottom: 0;
    padding-left: 20px;
    line-height: 2;
  }

  a * {
    color: inherit;
  }

  table {
    width: 100%;
    margin-bottom: 1.2em;

    th {
      font-weight: var(--font-weight-bold);
      line-height: 1.5;
      padding-inline: 6px;
      border-bottom: 1px solid var(--ant-color-split);
      word-break: break-word;
      text-align: left !important;
    }

    td {
      line-height: 1.5;
      padding-inline: 6px;
      border-bottom: 1px solid var(--ant-color-split);
      word-break: break-word;
      text-align: left !important;
    }

    div {
      display: inline;
    }
  }

  a {
    div {
      display: inline;
    }
  }

  img {
    max-width: 100%;
    height: auto;
  }
  img[src^="https://img.shields.io/"], img[src*="badge.svg"]
  {
    margin-bottom: 6px;
  }

  video {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-base);
  }

  audio {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-base);
  }

  .item-token {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
  }
}
