mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:31:41 +03:00
managen: accept more markdown-quote-markers
Lines starting with ``` or ~~~ indicate start and end of a quoted section. Closes #16685
This commit is contained in:
parent
3c9a1d3fcf
commit
67a1cfa5ef
1 changed files with 17 additions and 1 deletions
|
|
@ -320,7 +320,23 @@ sub render {
|
|||
$quote = 1;
|
||||
$d = "$word\n";
|
||||
}
|
||||
elsif($quote) {
|
||||
elsif($d =~ /^(```|~~~)/) {
|
||||
if(!$quote) {
|
||||
if($manpage) {
|
||||
push @desc, "\n" if($blankline);
|
||||
push @desc, ".nf\n";
|
||||
$blankline = 0;
|
||||
}
|
||||
$quote = 2;
|
||||
}
|
||||
else {
|
||||
# end of quote
|
||||
push @desc, ".fi\n" if($manpage);
|
||||
$quote = 0;
|
||||
}
|
||||
next;
|
||||
}
|
||||
elsif($quote == 1) {
|
||||
# end of quote
|
||||
push @desc, ".fi\n" if($manpage);
|
||||
$quote = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue