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
3434{
3535 protected string $ name = 'abbreviation ' ;
3636
37+ /** @return string[] */
38+ public function getAliases (): array
39+ {
40+ return ['abbr ' ];
41+ }
42+
3743 public function __construct (
3844 private readonly LoggerInterface $ logger ,
3945 ) {
Original file line number Diff line number Diff line change 11< p > < code > Default interpreted text</ code > </ p >
22< p > < code > Lorem Ipsum</ code > </ p >
33< p > < abbr title ="last-in, first-out "> LIFO</ abbr > </ p >
4+ < p > < abbr title ="Pretty Good Privacy "> PGP</ abbr > </ p >
45< p > < em class ="aspect "> Some important aspect</ em > </ p >
56< p > < code > result = (1 + x) * 32</ code > </ p >
67< p > < strong class ="command "> rm</ strong > </ p >
Original file line number Diff line number Diff line change 44
55:abbreviation: `LIFO (last-in, first-out) `
66
7+ :abbr: `PGP ( Pretty Good Privacy ) `
8+
79:aspect: `Some important aspect `
810
911:code: `result = (1 + x) * 32 `
You can’t perform that action at this time.
0 commit comments