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:
parent
2dc0737e95
commit
ca52a0485e
@ -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')
|
||||
|
@ -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)>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user