forgot to null-terminate the extended attribute string in linky_extended_attributes

This commit is contained in:
jessica parsons
2025-09-06 11:55:29 -07:00
parent ed83925ecf
commit eda57f596d
3 changed files with 5 additions and 3 deletions
+1
View File
@@ -502,6 +502,7 @@ linky_extended_attributes(MMIOT *f, struct footnote *p, int start)
while ( (c = pull(f)) != '}' ) while ( (c = pull(f)) != '}' )
EXPAND(p->extended_attr) = c; EXPAND(p->extended_attr) = c;
EXPAND(p->extended_attr) = 0;
} }
+3 -2
View File
@@ -87,8 +87,9 @@ MMIOT *gfm_string(const char*,int,mkd_flag_t*); /* assemble input from a buffer
void mkd_basename(MMIOT*,char*); void mkd_basename(MMIOT*,char*);
void mkd_initialize(void); void mkd_initialize(void);
void mkd_with_html5_tags(void);
void mkd_shlib_destructor(void); #define mkd_with_html5_tags() 0
#define mkd_shlib_destructor() 0
/* compilation, debugging, cleanup /* compilation, debugging, cleanup
*/ */
+1 -1
View File
@@ -44,7 +44,7 @@ static struct _opt {
{ "image", "images", 0, 1, 0, 1, MKD_NOIMAGE }, { "image", "images", 0, 1, 0, 1, MKD_NOIMAGE },
{ "links", "links", 0, 1, 0, 1, MKD_NOLINKS }, { "links", "links", 0, 1, 0, 1, MKD_NOLINKS },
{ "strict", "conform to the markdown standard", 0, 0, 0, 1, MKD_STRICT }, { "strict", "conform to the markdown standard", 0, 0, 0, 1, MKD_STRICT },
{ "relax", "conform to the markdown standard", 0, 1, 1, 1, MKD_STRICT }, { "relax", "(don't) conform to the markdown standard", 0, 1, 1, 1, MKD_STRICT },
{ "standard", "conform to the markdown standard", 0, 0, 1, 1, MKD_STRICT }, { "standard", "conform to the markdown standard", 0, 0, 1, 1, MKD_STRICT },
{ "tables", "tables", 0, 1, 0, 1, MKD_NOTABLES }, { "tables", "tables", 0, 1, 0, 1, MKD_NOTABLES },
{ "header", "pandoc-style headers", 0, 1, 0, 1, MKD_NOHEADER }, { "header", "pandoc-style headers", 0, 1, 0, 1, MKD_NOHEADER },