Merge topic 'help-command-anon-hyperlink'

119b2e62f8 cmRST: match anonymous hyperlink syntax
9ed206876f testRST: add test cases for anonymous hyperlinks

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12482
This commit is contained in:
Brad King
2026-09-08 10:00:41 -04:00
committed by Kitware Robot
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ cmRST::cmRST(std::string docroot)
"cmake-workflow-option|cpack-option|ctest-option|"
"ctest-dashboard-option"
"):`(<*([^`<]|[^` \t]<)*)([ \t]+<[^`]*>)?`")
, InlineLink("`(<*([^`<]|[^` \t]<)*)([ \t]+<[^`]*>)?`_")
, InlineLink("`(<*([^`<]|[^` \t]<)*)([ \t]+<[^`]*>)?`__?")
, InlineLiteral("``([^`]*)``")
, Substitution("(^|[^A-Za-z0-9_])"
"((\\|[^| \t\r\n]([^|\r\n]*[^| \t\r\n])?\\|)(__|_|))"
+3
View File
@@ -33,6 +33,9 @@ Inline cref ``Link_Text_<Placeholder>``.
Inline link Link Dest.
Inline link Link Text.
Inline link Link Text <With \-escaped Brackets>.
Inline link anon Link Dest.
Inline link anon Link Text.
Inline link anon Link Text <With \-escaped Brackets>.
Inline literal ``__`` followed by inline link Link Text.
Inline literal ``~!@#$%^&*( )_+-=\\[]{}'":;,<>.?/``.
+3
View File
@@ -40,6 +40,9 @@ Inline cref :cref:`Link_Text_<Placeholder> <ExternalDest>`.
Inline link `Link Dest`_.
Inline link `Link Text <ExternalDest>`_.
Inline link `Link Text \<With \\-escaped Brackets\> <ExternalDest>`_.
Inline link anon `Link Dest`__.
Inline link anon `Link Text <ExternalDest>`__.
Inline link anon `Link Text \<With \\-escaped Brackets\> <ExternalDest>`__.
Inline literal ``__`` followed by inline link `Link Text <InternalDest_>`_.
Inline literal ``~!@#$%^&*( )_+-=\\[]{}'":;,<>.?/``.