You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-09-16 09:06:18 +02:00
Allow code blocks to have a type.
Currently this is only rendered in Markdown.
This commit is contained in:
@@ -290,7 +290,14 @@ sub sectionProcess
|
|||||||
$strMarkdown .= "\n_" . $oChild->paramGet('title') . "_:";
|
$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
|
# Add descriptive text
|
||||||
elsif ($oChild->nameGet() eq 'p')
|
elsif ($oChild->nameGet() eq 'p')
|
||||||
|
@@ -226,6 +226,7 @@
|
|||||||
<!ELEMENT code (#PCDATA)>
|
<!ELEMENT code (#PCDATA)>
|
||||||
<!ELEMENT code-block (#PCDATA|exe)*>
|
<!ELEMENT code-block (#PCDATA|exe)*>
|
||||||
<!ATTLIST code-block title CDATA "">
|
<!ATTLIST code-block title CDATA "">
|
||||||
|
<!ATTLIST code-block type CDATA "">
|
||||||
|
|
||||||
<!ELEMENT host (#PCDATA)>
|
<!ELEMENT host (#PCDATA)>
|
||||||
<!ELEMENT file (#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>
|
<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>
|
||||||
|
|
||||||
|
<release-item>
|
||||||
|
<p>Allow code blocks to have a type. Currently this is only rendered in Markdown.</p>
|
||||||
|
</release-item>
|
||||||
|
|
||||||
<release-item>
|
<release-item>
|
||||||
<p>Deploy historical documentation to <path>prior</path> rather than the root directory.</p>
|
<p>Deploy historical documentation to <path>prior</path> rather than the root directory.</p>
|
||||||
</release-item>
|
</release-item>
|
||||||
|
Reference in New Issue
Block a user