File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed
packages/guides-restructured-text/src/RestructuredText/Directives
tests/Integration/tests/code/parsed-literal-block Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public function getName(): string
49
49
/** {@inheritDoc} */
50
50
public function getAliases (): array
51
51
{
52
- return ['code ' ];
52
+ return ['code ' , ' parsed-literal ' ];
53
53
}
54
54
55
55
/** {@inheritDoc} */
Original file line number Diff line number Diff line change
1
+ <!-- content start -->
2
+ < div class ="section " id ="title ">
3
+ < h1 > Title</ h1 >
4
+
5
+ < pre > < code class ="language- "> // Define a custom HTML entity for a regular space character
6
+ $regularSpaceEntity = '&#32;';
7
+
8
+ // Output the regular space character using the custom HTML entity
9
+ echo "This is a" . $regularSpaceEntity . "space";</ code > </ pre >
10
+ </ div >
11
+
12
+ <!-- content end -->
Original file line number Diff line number Diff line change
1
+ Title
2
+ =====
3
+
4
+ .. parsed-literal ::
5
+
6
+ // Define a custom HTML entity for a regular space character
7
+ $regularSpaceEntity = ' ';
8
+
9
+ // Output the regular space character using the custom HTML entity
10
+ echo "This is a" . $regularSpaceEntity . "space";
You can’t perform that action at this time.
0 commit comments