From: Fletcher T. Penney Date: Sat, 21 Jan 2017 02:42:44 +0000 (-0500) Subject: CHANGED: Tidy up X-Git-Tag: 0.1.1a^2~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00f8bde2712ac3e42e43e61a6d594e876fd647f9;p=multimarkdown CHANGED: Tidy up --- diff --git a/src/html.c b/src/html.c index 431c119..f35ae73 100644 --- a/src/html.c +++ b/src/html.c @@ -116,7 +116,6 @@ void mmd_print_string_html(DString * out, const char * str, bool obfuscate) { 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) { diff --git a/src/mmd.c b/src/mmd.c index d94fe08..b3181f3 100644 --- a/src/mmd.c +++ b/src/mmd.c @@ -58,7 +58,6 @@ #include "char.h" #include "d_string.h" -#include "html.h" /// \todo: Remove this for production #include "lexer.h" #include "libMultiMarkdown.h" #include "mmd.h" @@ -750,9 +749,6 @@ void mmd_pair_tokens_in_block(token * block, token_pair_engine * e, stack * s) { 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: @@ -779,19 +775,17 @@ void mmd_pair_tokens_in_block(token * block, token_pair_engine * e, stack * s) { 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; } }