1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-10-30 23:37:45 +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')