Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Images #2

Open
samwillis opened this issue Feb 13, 2013 · 1 comment
Open

Support for Images #2

samwillis opened this issue Feb 13, 2013 · 1 comment

Comments

@samwillis
Copy link

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
Copy link
Author

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;
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant