File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed
src/Templates/default/html Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 22 Overridden so we can control the path to the image based on our copying logic.
33 See CopyImagesListener.
44#}
5+ {% set wrap_image_with_browser = ' with-browser' in imageNode .options .class ?? ' ' %}
6+ {% if wrap_image_with_browser %}<div class =" with-browser" >{% endif %}
57<img src =" {{ imageNode .value }}" {% for key , value in imageNode .options %}{{ key }}=" {{ value }}" {% endfor %}/>
8+ {% if wrap_image_with_browser %}</div >{% endif %}
Original file line number Diff line number Diff line change 1- <!DOCTYPE html>
2- < html >
3- < head >
4- < meta charset ="utf-8 " />
5- </ head >
6- < body >
7-
81< figure >
92 <!-- REMOVE: src is empty just because the test doesn't utilize the full stack, with CopyImagesListener -->
103 < img src ="" alt ="Symfony Logo " width ="200px " />
1811 < figcaption > < p > But I am a caption < em > for</ em > the figure above.</ p > </ figcaption >
1912</ figure >
2013
21- </ body >
22- </ html >
14+ < p > Some images use a special CSS class to wrap a fake browser around them:</ p >
15+ < div class ="with-browser ">
16+ < img src ="" alt ="A typical exception page in the development environment " align ="center " class ="some-class with-browser another-class ">
17+ </ div >
Original file line number Diff line number Diff line change @@ -8,3 +8,10 @@ caption for the above figure.
88.. figure :: images/logo.png
99
1010 But I am a caption *for * the figure above.
11+
12+ Some images use a special CSS class to wrap a fake browser around them:
13+
14+ .. image :: images/exceptions-in-dev-environment.png
15+ :alt: A typical exception page in the development environment
16+ :align: center
17+ :class: some-class with-browser another-class
You can’t perform that action at this time.
0 commit comments