and markdown markup do not work inside code spans.
-/* $Id: mdoc_markdown.c,v 1.12 2017/03/08 17:51:58 schwarze Exp $ */
+/* $Id: mdoc_markdown.c,v 1.13 2017/03/08 18:17:21 schwarze Exp $ */
/*
* Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
*
if ((prefix = md_acts[n->tok].prefix) != NULL) {
md_rawword(prefix);
outflags &= ~MD_spc;
+ if (*prefix == '`')
+ code_blocks++;
}
return 1;
}
if ((suffix = md_acts[n->tok].suffix) != NULL) {
outflags &= ~(MD_spc | MD_nl);
md_rawword(suffix);
+ if (*suffix == '`')
+ code_blocks--;
}
}
macro.
And with
-`some *embedded* string`.
+`some embedded string`.
OpenBSD - October 21, 2011
# DESCRIPTION
normal text
-`EFONT*emphasis*EBACK`
+`EFONTemphasisEBACK`
trailing text
OpenBSD - July 9, 2012
variable.
And with
-`some *embedded* string`.
+`some embedded string`.
OpenBSD - October 21, 2011
# DESCRIPTION
normal text
-`literal*emphasis*back`
+`literalemphasisback`
trailing text
OpenBSD - July 9, 2012
# DESCRIPTION
normal text
-`literal*emphasis*back`
+`literalemphasisback`
trailing text
OpenBSD - July 9, 2012