File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
packages/guides-restructured-text/src/RestructuredText/TextRoles
tests/Functional/tests/text-roles Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,12 @@ final class AbbreviationTextRole extends BaseTextRole
34
34
{
35
35
protected string $ name = 'abbreviation ' ;
36
36
37
+ /** @return string[] */
38
+ public function getAliases (): array
39
+ {
40
+ return ['abbr ' ];
41
+ }
42
+
37
43
public function __construct (
38
44
private readonly LoggerInterface $ logger ,
39
45
) {
Original file line number Diff line number Diff line change 1
1
< p > < code > Default interpreted text</ code > </ p >
2
2
< p > < code > Lorem Ipsum</ code > </ p >
3
3
< p > < abbr title ="last-in, first-out "> LIFO</ abbr > </ p >
4
+ < p > < abbr title ="Pretty Good Privacy "> PGP</ abbr > </ p >
4
5
< p > < em class ="aspect "> Some important aspect</ em > </ p >
5
6
< p > < code > result = (1 + x) * 32</ code > </ p >
6
7
< p > < strong class ="command "> rm</ strong > </ p >
Original file line number Diff line number Diff line change 4
4
5
5
:abbreviation: `LIFO (last-in, first-out) `
6
6
7
+ :abbr: `PGP ( Pretty Good Privacy ) `
8
+
7
9
:aspect: `Some important aspect `
8
10
9
11
:code: `result = (1 + x) * 32 `
You can’t perform that action at this time.
0 commit comments