Skip to content

Commit

Permalink
Numeric list magic
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Oct 18, 2017
1 parent c8512cc commit 55664f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/click-elem2man
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,9 @@ sub markdownize_text ($$) {
# remove self references
$t =~ s{\[$PrimaryElement\]\($PrimaryElement\)}{$PrimaryElement}g;

# quote colons that look like emoji escapes
# quote colons that look like emoji escapes, and numbers that look like lists
$t =~ s{:(?=[-+_a-z0-9]+:)}{\\:}ig;
$t =~ s{^(\d+)\. }{$1\\. }mg;

$t;
}
Expand Down

0 comments on commit 55664f1

Please sign in to comment.