summaryrefslogtreecommitdiffstats
path: root/mdoc_markdown.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc_markdown.c')
-rw-r--r--mdoc_markdown.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdoc_markdown.c b/mdoc_markdown.c
index ff797bfd..cb28ee1e 100644
--- a/mdoc_markdown.c
+++ b/mdoc_markdown.c
@@ -1178,7 +1178,9 @@ md_pre_It(struct roff_node *n)
break;
case LIST_enum:
md_preword();
- printf("%d.\t", ++bln->norm->Bl.count);
+ if (bln->norm->Bl.count < 99)
+ bln->norm->Bl.count++;
+ printf("%d.\t", bln->norm->Bl.count);
escflags &= ~ESC_FON;
break;
case LIST_column: