void mmd_print_localized_char_html(DString * out, unsigned short type, scratch_pad * scratch) {
- // TODO: Is smart typography enabled? Which language?
int language = 0;
switch (type) {
#include "char.h"
#include "d_string.h"
-#include "html.h" /// \todo: Remove this for production
#include "lexer.h"
#include "libMultiMarkdown.h"
#include "mmd.h"
if (block == NULL || e == NULL)
return;
- // Pair tokens (if appropriate)
- // \todo: Check for leaf node. Also, might need to put this somewhere else
-
switch (block->type) {
case BLOCK_BLOCKQUOTE:
case BLOCK_DEF_CITATION:
token_pairs_match_pairs_inside_token(block, e, s);
mmd_pair_tokens_in_chain(block->child, e, s);
break;
- case BLOCK_EMPTY:
- case BLOCK_CODE_INDENTED:
- case BLOCK_CODE_FENCED:
- // No need to pair tokens in these blocks
- break;
case LINE_TABLE:
- case BLOCK_TABLE: // \TODO: Need to handle tables differently and isolate by cell?
+ case BLOCK_TABLE:
+ // TODO: Need to parse into cells first
token_pairs_match_pairs_inside_token(block, e, s);
mmd_pair_tokens_in_chain(block->child, e, s);
break;
+ case BLOCK_EMPTY:
+ case BLOCK_CODE_INDENTED:
+ case BLOCK_CODE_FENCED:
default:
// Nothing to do here
- //fprintf(stderr, "What to do for %d\n", block->type);
return;
}
}