diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-03-08 17:51:58 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-03-08 17:51:58 +0000 |
commit | 9d1775c515c3381957c801b3de57c9b282668dac (patch) | |
tree | 82d2a569ac21334e3987f99d0809fc9b7641d73f | |
parent | 38ec26219c7fa9c905330d863676e635aa47db66 (diff) | |
download | mandoc-9d1775c515c3381957c801b3de57c9b282668dac.tar.gz mandoc-9d1775c515c3381957c801b3de57c9b282668dac.tar.zst mandoc-9d1775c515c3381957c801b3de57c9b282668dac.zip |
The CommonMark specification allows list markers fo the form "number) "
as well as "number. ", so escape closing parentheses after leading digits
to improve portability.
-rw-r--r-- | mdoc_markdown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_markdown.c b/mdoc_markdown.c index 3e29c5c8..873983b9 100644 --- a/mdoc_markdown.c +++ b/mdoc_markdown.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_markdown.c,v 1.11 2017/03/08 17:40:55 schwarze Exp $ */ +/* $Id: mdoc_markdown.c,v 1.12 2017/03/08 17:51:58 schwarze Exp $ */ /* * Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> * @@ -535,7 +535,7 @@ md_word(const char *s) bs = escflags & ESC_HYP && !code_blocks; break; case ')': - bs = escflags & ESC_PAR && !code_blocks; + bs = escflags & (ESC_NUM | ESC_PAR) && !code_blocks; break; case '*': case '[': |