-
Notifications
You must be signed in to change notification settings - Fork 114
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
Add inline styling to image formatter #105
Comments
Thanks for the submission. Am I correctly reading the syntax as There is already a slightly different syntax for specifying custom styles that is be used with the |
No, the syntax uses curly brackets for the css. The css obviously then goes in the style field of the img. The relevant regex section is |
Sorry for the confusion, I was trying to read your regexp on my phone; an example of the syntax you are proposing would have helped. You'll readily understand that the concern here is around trying to be orderly in extending the existing syntax. With your syntax of Secondly, if we're extending the syntax it would be worth considering how to apply classes to the image element, too. The only existing syntax for applying classes is the not-very-pretty So, we'd have:
What do you think? |
Well the problem I've had with those is that they usually only allow one style bit to be specified ( |
You can in fact have multiple style clauses: eg: Having said that, looking at the code in more detail it would be quite hard to reuse |
@Jermolene ... I did read through the whole issue. It's an "improvement" request, so I labelled it accordingly |
I was trying to add a couple images to a tiddler, and I realized that there is not way to style the image. So I played around a bit and came up with this. It works pretty good.
I put it in curly brackets to keep it separated from the external link. This code goes just above
w.nextMatch
.I can't possibly see how this could break anything. Could this be added to the core?
The text was updated successfully, but these errors were encountered: