fix rSt code example (#9528)

* fix rSt code example

* update tests
This commit is contained in:
chris48s
2023-09-04 10:45:56 +01:00
committed by GitHub
parent 1d9a6b0f80
commit 75affcac13
2 changed files with 5 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ function getCodeSamples(altText) {
{
lang: 'reStructuredText',
label: 'rSt',
source: `.. image:: $url\n: alt: ${altText}`,
source: `.. image:: $url\n :alt: ${altText}`,
},
{
lang: 'AsciiDoc',

View File

@@ -192,7 +192,7 @@ const expected = {
{
lang: 'reStructuredText',
label: 'rSt',
source: '.. image:: $url\n: alt: OpenApiService Summary',
source: '.. image:: $url\n :alt: OpenApiService Summary',
},
{
lang: 'AsciiDoc',
@@ -248,7 +248,7 @@ const expected = {
lang: 'reStructuredText',
label: 'rSt',
source:
'.. image:: $url\n: alt: OpenApiService Summary (with Tag)',
'.. image:: $url\n :alt: OpenApiService Summary (with Tag)',
},
{
lang: 'AsciiDoc',
@@ -301,7 +301,7 @@ const expected = {
{
lang: 'reStructuredText',
label: 'rSt',
source: '.. image:: $url\n: alt: LegacyService Title (with Tag)',
source: '.. image:: $url\n :alt: LegacyService Title (with Tag)',
},
{
lang: 'AsciiDoc',
@@ -347,7 +347,7 @@ const expected = {
{
lang: 'reStructuredText',
label: 'rSt',
source: '.. image:: $url\n: alt: LegacyService Title (with Tag)',
source: '.. image:: $url\n :alt: LegacyService Title (with Tag)',
},
{
lang: 'AsciiDoc',