From: Fletcher T. Penney Date: Mon, 13 Feb 2017 03:10:02 +0000 (-0500) Subject: FIXED: Properly print hash characters in LaTeX X-Git-Tag: 0.3.0a^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=593cf814d27b3c2acbe41bce7d9b567278238647;p=multimarkdown FIXED: Properly print hash characters in LaTeX --- diff --git a/src/latex.c b/src/latex.c index df6e573..c5abdeb 100644 --- a/src/latex.c +++ b/src/latex.c @@ -644,8 +644,12 @@ void mmd_export_token_latex(DString * out, const char * source, token * t, scrat case HASH6: for (int i = 0; i < t->len; ++i) { - print_char('\\'); - print_char('#'); + if (source[t->start + i] == '#') { + print_char('\\'); + print_char('#'); + } else { + mmd_print_char_latex(out, source[t->start + i]); + } } break; case INDENT_SPACE: