for some reason mkd_h1_title() was expecting a separate flags argument, but none of the prototypes defined it that way but still it compiled. Okay, that wasn't right

This commit is contained in:
jessica parsons
2024-10-03 20:02:33 -07:00
parent 827bedd96c
commit bf05eb5fb8
+4 -4
View File
@@ -17,7 +17,7 @@ mkd_h1(Paragraph *p)
} }
char * char *
mkd_h1_title(Document *doc, mkd_flag_t* flags) mkd_h1_title(Document *doc)
{ {
Paragraph *title; Paragraph *title;
@@ -28,10 +28,10 @@ mkd_h1_title(Document *doc, mkd_flag_t* flags)
/* assert that a H1 header is one line long, so that's /* assert that a H1 header is one line long, so that's
* the only thing needed * the only thing needed
*/ */
set_mkd_flag(flags, MKD_TAGTEXT); set_mkd_flag(&(doc->ctx->flags), MKD_TAGTEXT);
size = mkd_line(T(title->text->text), size = mkd_line(T(title->text->text),
S(title->text->text), &generated, flags); S(title->text->text), &generated, &(doc->ctx->flags));
clear_mkd_flag(flags, MKD_TAGTEXT); clear_mkd_flag(&(doc->ctx->flags), MKD_TAGTEXT);
if ( size ) return generated; if ( size ) return generated;
} }
return 0; return 0;