markdown-css icon indicating copy to clipboard operation
markdown-css copied to clipboard

Support for Images

Open samwillis opened this issue 12 years ago • 1 comments

As much as I like kittens... This adds the markdown for images too:

.markdown img {
  display: inline;
  content: "";
  height: 1px
}
.markdown img:before {
  content: "![" attr(alt) "](" attr(src) ")";
  display: inline;
  color: #333333;
}

samwillis avatar Feb 13 '13 17:02 samwillis

If you change the less file to this it should work:

img {
    display: inline;
    content: "";
    &:before {
        content: ~'"![" attr(alt)';
        display: inline-block;
    }
    &:after {
        content: ~'"](" attr(src) ")"';
        display: inline-block;
    }
}

samwillis avatar Feb 13 '13 17:02 samwillis