ext/commonmarker/latex.c in commonmarker-0.23.8 vs ext/commonmarker/latex.c in commonmarker-0.23.9

- old
+ new

@@ -383,13 +383,15 @@ OUT(entering ? cmark_node_get_on_enter(node) : cmark_node_get_on_exit(node), false, LITERAL); break; case CMARK_NODE_STRONG: - if (entering) { - LIT("\\textbf{"); - } else { - LIT("}"); + if (node->parent == NULL || node->parent->type != CMARK_NODE_STRONG) { + if (entering) { + LIT("\\textbf{"); + } else { + LIT("}"); + } } break; case CMARK_NODE_EMPH: if (entering) {