]> git.cameronkatri.com Git - mandoc.git/blobdiff - mdoc_markdown.c
Two minor improvements:
[mandoc.git] / mdoc_markdown.c
index 65bffea003713f437cd5e13b77e9570ce7777bba..63d8e17055804b043f01f0fb89807ab98ee12b31 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: mdoc_markdown.c,v 1.35 2020/04/03 11:35:01 schwarze Exp $ */
+/* $Id: mdoc_markdown.c,v 1.37 2021/08/10 12:55:03 schwarze Exp $ */
 /*
  * Copyright (c) 2017, 2018, 2020 Ingo Schwarze <schwarze@openbsd.org>
  *
@@ -16,6 +16,8 @@
  *
  * Markdown formatter for mdoc(7) used by mandoc(1).
  */
+#include "config.h"
+
 #include <sys/types.h>
 
 #include <assert.h>
@@ -601,16 +603,18 @@ md_word(const char *s)
                                md_rawword("markdown");
                                continue;
                        case ESCAPE_FONTBOLD:
+                       case ESCAPE_FONTCB:
                                nextfont = "**";
                                break;
                        case ESCAPE_FONTITALIC:
+                       case ESCAPE_FONTCI:
                                nextfont = "*";
                                break;
                        case ESCAPE_FONTBI:
                                nextfont = "***";
                                break;
                        case ESCAPE_FONT:
-                       case ESCAPE_FONTCW:
+                       case ESCAPE_FONTCR:
                        case ESCAPE_FONTROMAN:
                                nextfont = "";
                                break;