.markdown {
  $margin-top-large: em(s(2));

  .release-details {
    a {
      &:after {
        display: none;
      }
    }
  }

  @extend %table;

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-top: s(2);
  }

  h1,
  h2 {
    margin-bottom: s(2);
  }

  hr {
    background-color: $color-markdown-hr;
    border: 0;
    height: 2px;
    margin-top: $margin-top-large;

    & + p {
      margin-top: $margin-top-large;
    }
  }

  p {
    margin-top: em(s(0.5));

    &:first-child {
      margin-top: 0;
    }

    & + p {
      margin-top: em(s(1));
    }
  }

  table + p {
    margin-top: em(s(1));
  }

  a {
    color: $color-body-text;
    @include underline-link;
    z-index: 0;
  }

  b,
  strong {
    font-weight: $font-weight-bold;
  }

  blockquote {
    background-color: $color-markdown-blockquote;
    border-left: $border $color-border;
    margin-top: em(s(0.5));
    padding: s(0.5);

    a {
      text-shadow: -1px 0 0 $color-markdown-blockquote, 1px 0 0 $color-markdown-blockquote;

      &:hover {
        text-shadow: -1px 0 0 transparent, 1px 0 0 transparent;
      }
    }

    p {
      margin: 0;

      & + & {
        margin-top: em(s(0.5));
      }
    }
  }

  kbd,
  code {
    background-color: $color-markdown-hr;
    padding: s(0.125);
  }

  pre {
    background-color: $color-markdown-hr;
    overflow: scroll;
    padding: s(0.5);

    code {
      background-color: transparent;
      padding: 0;
    }
  }

}
