-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
example.html doesn't replace the whole holder.js line #27395
Comments
This was the idea, as far as I remember. When you look at the output of the markup example, the <div class="card" style="width: 18rem;">
<img class="card-img-top" src=".../100px180/" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div> 📝 https://getbootstrap.com/docs/4.1/components/card/#example |
Nope, the idea was to replace the whole |
I think you will need to include a |
For reference, this #25784 (comment) is the last comment before @XhmikosR continued and did some final changes and merged the PR. If regex dosn’t work out of the box and to make the example html working without a js dependency. What do you think to replace the |
I'd even go with a simple SVG too if we can make it work and just pass the fill color, width and height. |
what about the |
Not sure what you mean. Embed doesn't have any placeholder images. |
@XhmikosR there is a sample YouTube video in the embed example that is not replaced by |
Well, ideally, we could do that. But it's only one case so it's not so important to just use |
@m5o: so do you have any suggestions? Otherwise I guess we'll need to revert back to the plugin. |
I'm traveling currently and don't have my tech stuff with me. Sorry, bad timing.
|
We can wait a bit more, no hurry :) I already have #27491 open and ready to be merged and to be honest I feel like it's the best solution due to Liquid's lack of regular expression support. But if we can come up with a simple patch with SVGs, we can decide then which one to merge. |
@MartijnCuppens: any luck with the placeholder SVG solution? |
This
Matches only the
holder.js
part and not the whole string. As far as I can tell there's no regex support here, so I'm not sure how to proceed./CC @m5o
The text was updated successfully, but these errors were encountered: