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 2
2
Overridden so we can control the path to the image based on our copying logic.
3
3
See CopyImagesListener.
4
4
#}
5
+ {% set wrap_image_with_browser = ' with-browser' in imageNode .options .class ?? ' ' %}
6
+ {% if wrap_image_with_browser %}<div class =" with-browser" >{% endif %}
5
7
<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
-
8
1
< figure >
9
2
<!-- REMOVE: src is empty just because the test doesn't utilize the full stack, with CopyImagesListener -->
10
3
< img src ="" alt ="Symfony Logo " width ="200px " />
18
11
< figcaption > < p > But I am a caption < em > for</ em > the figure above.</ p > </ figcaption >
19
12
</ figure >
20
13
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.
8
8
.. figure :: images/logo.png
9
9
10
10
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