}
// No links exist, so treat as normal
+ print_const("{");
mmd_export_token_tree_latex(out, source, t->child, scratch);
+ print_const("}");
break;
case PAIR_BRACKET_ABBREVIATION:
if (temp_short == -1) {
// This instance is not properly formed
- print_const("[>");
+ print_const("{[>");
mmd_export_token_tree_latex(out, source, t->child->next, scratch);
- print_const("]");
+ print_const("]}");
break;
}
}
} else {
// Note-based syntax disabled
+ print_const("{");
mmd_export_token_tree_latex(out, source, t->child, scratch);
+ print_const("}");
}
break;
// Ensure we aren't using BibTeX
if (!scratch->bibtex_file) {
// This instance is not properly formed
- print_const("[#");
+ print_const("{[#");
mmd_export_token_tree_latex(out, source, t->child->next, scratch);
- print_const("]");
+ print_const("]}");
free(temp_char);
break;
free(temp_char);
} else {
// Note-based syntax disabled
+ print_const("{");
mmd_export_token_tree_latex(out, source, t->child, scratch);
+ print_const("}");
}
break;
if (temp_short == -1) {
// This instance is not properly formed
- print_const("[?");
+ print_const("{[?");
mmd_export_token_tree_latex(out, source, t->child->next, scratch);
- print_const("]");
+ print_const("]}");
break;
}
}
} else {
// Note-based syntax disabled
+ print_const("{");
mmd_export_token_tree_latex(out, source, t->child, scratch);
+ print_const("}");
}
break;
if (temp_short == -1) {
// This instance is not properly formed
- print_const("[?");
+ print_const("{[?");
if (t->child) {
mmd_export_token_tree_latex(out, source, t->child->next, scratch);
print_token(t);
}
- print_const("]");
+ print_const("]}");
break;
}
}
} else {
// Note-based syntax disabled
+ print_const("{");
mmd_export_token_tree_latex(out, source, t->child, scratch);
+ print_const("}");
}
break;
if (temp_char2) {
mmd_print_string_latex(out, temp_char2);
} else {
+ print_const("{");
mmd_export_token_tree_latex(out, source, t->child, scratch);
+ print_const("}");
}
// Don't free temp_char2 (it belongs to meta *)
Markdown supports two style of links: \emph{inline} and \emph{reference}.
-In both styles, the link text is delimited by [square brackets].
+In both styles, the link text is delimited by {[square brackets]}.
To create an inline link, use a set of regular parentheses immediately
after the link text's closing square bracket. Inside the parentheses,