diff --git a/hmml_to_html/hmml_to_html.c b/hmml_to_html/hmml_to_html.c
index 2ee634b..b34e659 100644
--- a/hmml_to_html/hmml_to_html.c
+++ b/hmml_to_html/hmml_to_html.c
@@ -1,6 +1,6 @@
#if 0
ctime -begin ${0%.*}.ctm
-gcc -g -Wall -fsanitize=address -std=c99 -pipe $0 -o ${0%.*} hmml.a
+gcc -g -no-pie -fsanitize=address -Wall -std=c99 -pipe $0 -o ${0%.*} hmml.a
ctime -end ${0%.*}.ctm
exit
#endif
@@ -561,15 +561,6 @@ BuildReference(ref_info *ReferencesArray, int RefIdentifier, int UniqueRefs, HMM
if(Ref.publisher) { Mask |= REF_PUBLISHER; }
if(Ref.isbn) { Mask |= REF_ISBN; }
- /*
- * NOTE(matt)
- *
- * Mask
- * Loop over the reference attributes, adding them to a mask if they are set
- * Then my cases will just be that mask tested against the attributes OR'd with each other
- *
- */
-
if((REF_URL | REF_TITLE | REF_AUTHOR | REF_PUBLISHER | REF_ISBN) == Mask)
{
CopyString(ReferencesArray[UniqueRefs].ID, Ref.isbn);
@@ -652,16 +643,16 @@ BuildReference(ref_info *ReferencesArray, int RefIdentifier, int UniqueRefs, HMM
char *CategoryMedium[][3] =
{
// medium icon written name
- { "afk", "…" , "Away from Keyboard"}, // TODO(matt): Filter this out by default
- { "authored", "🗪", "Chat Comment"}, // TODO(matt): Conditionally handle Chat vs Guest Comments
- { "blackboard", "🖌", "Blackboard"},
- { "default", "🖮", "Programming"}, // TODO(matt): Potentially make this configurable per project
- { "experience", "🍷", "Experience"},
- { "owl", "🦉", "Owl of Shame"},
- { "rant", "💢", "Rant"},
- { "research", "📖", "Research"},
- { "run", "🏃", "In-Game"}, // TODO(matt): Potentially make this configurable per project
- { "trivia", "🎲", "Trivia"},
+ { "afk", "…" , "Away from Keyboard"}, // TODO(matt): Filter this out by default
+ { "authored", "🗪", "Chat Comment"}, // TODO(matt): Conditionally handle Chat vs Guest Comments
+ { "blackboard", "🖌", "Blackboard"},
+ { "experience", "🍷", "Experience"},
+ { "owl", "🦉", "Owl of Shame"},
+ { "programming", "🖮", "Programming"}, // TODO(matt): Potentially make this configurable per project
+ { "rant", "💢", "Rant"},
+ { "research", "📖", "Research"},
+ { "run", "🏃", "In-Game"}, // TODO(matt): Potentially make this configurable per project
+ { "trivia", "🎲", "Trivia"},
};
void
@@ -1224,7 +1215,7 @@ ParseConfig(buffer *Buffer, char *Username)
#endif
void
-PrintUsage(char *BinaryLocation, char *DefaultCSSDir, char *DefaultImagesDir, char *DefaultJSDir, char *DefaultOutLocation, char *DefaultQuoteDir, char *DefaultTemplateLocation)
+PrintUsage(char *BinaryLocation, char *DefaultCSSDir, char *DefaultImagesDir, char *DefaultJSDir, char *DefaultDefaultMedium, char *DefaultOutLocation, char *DefaultQuoteDir, char *DefaultTemplateLocation)
{
fprintf(stderr, "Usage: %s [option(s)] filename(s)\n"
"\n"
@@ -1235,6 +1226,8 @@ PrintUsage(char *BinaryLocation, char *DefaultCSSDir, char *DefaultImagesDir, ch
" Override default images directory (\"%s\")\n"
" -j \n"
" Override default JS directory (\"%s\")\n"
+ " -m \n"
+ " Override default default medium (\"%s\")\n"
" -o