1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00

Allow code blocks to have a type.

Currently this is only rendered in Markdown.
This commit is contained in:
David Steele 2018-02-16 14:46:02 -05:00
parent 2dc0737e95
commit ca52a0485e
3 changed files with 13 additions and 1 deletions

View File

@ -290,7 +290,14 @@ sub sectionProcess
$strMarkdown .= "\n_" . $oChild->paramGet('title') . "_:";
}
$strMarkdown .= "\n```\n" . trim($oChild->valueGet()) . "\n```";
$strMarkdown .= "\n```";
if ($oChild->paramTest('type'))
{
$strMarkdown .= $oChild->paramGet('type');
}
$strMarkdown .= "\n" . trim($oChild->valueGet()) . "\n```";
}
# Add descriptive text
elsif ($oChild->nameGet() eq 'p')

View File

@ -226,6 +226,7 @@
<!ELEMENT code (#PCDATA)>
<!ELEMENT code-block (#PCDATA|exe)*>
<!ATTLIST code-block title CDATA "">
<!ATTLIST code-block type CDATA "">
<!ELEMENT host (#PCDATA)>
<!ELEMENT file (#PCDATA)>

View File

@ -149,6 +149,10 @@
<p>Improve section source feature to not require a title or content. The title will be pulled from the source document.</p>
</release-item>
<release-item>
<p>Allow code blocks to have a type. Currently this is only rendered in Markdown.</p>
</release-item>
<release-item>
<p>Deploy historical documentation to <path>prior</path> rather than the root directory.</p>
</release-item>