print("=");
break;
case ESCAPED_CHARACTER:
- mmd_print_char_latex(out, source[t->start + 1]);
+ if (!(scratch->extensions & EXT_COMPATIBILITY) &&
+ (source[t->start + 1] == ' ')) {
+ print("~");
+ } else {
+ mmd_print_char_latex(out, source[t->start + 1]);
+ }
break;
case HASH1:
case HASH2:
switch (t->type) {
case ESCAPED_CHARACTER:
- mmd_print_char_latex(out, source[t->start + 1]);
+ print("\\");
+ print_char(source[t->start + 1]);
+// mmd_print_char_latex(out, source[t->start + 1]);
break;
case CODE_FENCE:
if (t->next)
switch (t->type) {
case AMPERSAND:
+ case AMPERSAND_LONG:
print("\\&");
break;
case ANGLE_LEFT: