diff options
author | Brad King <brad.king@kitware.com> | 2018-05-03 18:48:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-05-07 14:10:37 (GMT) |
commit | 7d918b3cee64961a1ed5e9c5a28f29cf0e48c130 (patch) | |
tree | 47dcff99686a84d3a87af3e6d4ad8230c93e528f /Tests | |
parent | 5e5ef61ed3b5808dfe1a71623ec12c451d7fe385 (diff) | |
download | CMake-7d918b3cee64961a1ed5e9c5a28f29cf0e48c130.zip CMake-7d918b3cee64961a1ed5e9c5a28f29cf0e48c130.tar.gz CMake-7d918b3cee64961a1ed5e9c5a28f29cf0e48c130.tar.bz2 |
cmRST: Parse inline links and inline literals
Render links as the link text only. Render literals as themselves.
This is closer to what the Sphinx text generator does.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLib/testRST.expect | 4 | ||||
-rw-r--r-- | Tests/CMakeLib/testRST.rst | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Tests/CMakeLib/testRST.expect b/Tests/CMakeLib/testRST.expect index 4b29762..1ffd6b9 100644 --- a/Tests/CMakeLib/testRST.expect +++ b/Tests/CMakeLib/testRST.expect @@ -19,6 +19,10 @@ Variable ``VARIABLE_<PLACEHOLDER>`` with trailing placeholder and target. Environment variable ``SOME_ENV_VAR``. Environment variable ``some env var`` with space and target. Generator ``Some Generator`` with space. +Inline literal ``~!@#$%^&*( )_+-=\\[]{}'":;,<>.?/``. +Inline link Link Text. +Inline link Link Text <With \-escaped Brackets>. +Inline literal ``__`` followed by inline link Link Text. First TOC entry. diff --git a/Tests/CMakeLib/testRST.rst b/Tests/CMakeLib/testRST.rst index 9cd7257..c8587c0 100644 --- a/Tests/CMakeLib/testRST.rst +++ b/Tests/CMakeLib/testRST.rst @@ -26,6 +26,10 @@ Variable :variable:`VARIABLE_<PLACEHOLDER> <target>` with trailing placeholder a Environment variable :envvar:`SOME_ENV_VAR`. Environment variable :envvar:`some env var <SOME_ENV_VAR>` with space and target. Generator :generator:`Some Generator` with space. +Inline literal ``~!@#$%^&*( )_+-=\\[]{}'":;,<>.?/``. +Inline link `Link Text <ExternalDest>`_. +Inline link `Link Text \<With \\-escaped Brackets\> <ExternalDest>`_. +Inline literal ``__`` followed by inline link `Link Text <InternalDest_>`_. .. |not replaced| replace:: not replaced through toctree .. |not replaced in literal| replace:: replaced in parsed literal |