summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/mdoc_markdown.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mandoc/mdoc_markdown.c')
-rw-r--r--usr.bin/mandoc/mdoc_markdown.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc_markdown.c b/usr.bin/mandoc/mdoc_markdown.c
index 005a38315cb..1c5067cbcfc 100644
--- a/usr.bin/mandoc/mdoc_markdown.c
+++ b/usr.bin/mandoc/mdoc_markdown.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mdoc_markdown.c,v 1.36 2021/08/10 12:36:42 schwarze Exp $ */
+/* $OpenBSD: mdoc_markdown.c,v 1.37 2024/08/13 12:43:55 schwarze Exp $ */
/*
* Copyright (c) 2017, 2018, 2020 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -748,7 +748,7 @@ md_pre_raw(struct roff_node *n)
if ((prefix = md_act(n->tok)->prefix) != NULL) {
md_rawword(prefix);
outflags &= ~MD_spc;
- if (*prefix == '`')
+ if (strchr(prefix, '`') != NULL)
code_blocks++;
}
return 1;
@@ -762,7 +762,7 @@ md_post_raw(struct roff_node *n)
if ((suffix = md_act(n->tok)->suffix) != NULL) {
outflags &= ~(MD_spc | MD_nl);
md_rawword(suffix);
- if (*suffix == '`')
+ if (strchr(suffix, '`') != NULL)
code_blocks--;
}
}