]> granicus.if.org Git - multimarkdown/commitdiff
CHANGED: Tidy up
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Sat, 21 Jan 2017 02:42:44 +0000 (21:42 -0500)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Sat, 21 Jan 2017 02:42:44 +0000 (21:42 -0500)
src/html.c
src/mmd.c

index 431c119e7a0d60374a6ac5836f3d165b31f775b8..f35ae73958d783dc21119f0b7abf1d71794eba50 100644 (file)
@@ -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) {
index d94fe08c5b73517b108edf16fc7356e0cddc6444..b3181f34be46cb16d3ae10ca2c423e852a0e0b24 100644 (file)
--- 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;
        }
 }