From eda57f596d3f09feed092634256a9e991151f49f Mon Sep 17 00:00:00 2001 From: jessica parsons Date: Sat, 6 Sep 2025 11:55:29 -0700 Subject: [PATCH] forgot to null-terminate the extended attribute string in linky_extended_attributes --- generate.c | 1 + mkdio.h.in | 5 +++-- pgm_options.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/generate.c b/generate.c index 6e092a7..448158a 100644 --- a/generate.c +++ b/generate.c @@ -502,6 +502,7 @@ linky_extended_attributes(MMIOT *f, struct footnote *p, int start) while ( (c = pull(f)) != '}' ) EXPAND(p->extended_attr) = c; + EXPAND(p->extended_attr) = 0; } diff --git a/mkdio.h.in b/mkdio.h.in index 70d91e3..94287e6 100644 --- a/mkdio.h.in +++ b/mkdio.h.in @@ -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_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 */ diff --git a/pgm_options.c b/pgm_options.c index b8f1073..03cb17a 100644 --- a/pgm_options.c +++ b/pgm_options.c @@ -44,7 +44,7 @@ static struct _opt { { "image", "images", 0, 1, 0, 1, MKD_NOIMAGE }, { "links", "links", 0, 1, 0, 1, MKD_NOLINKS }, { "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 }, { "tables", "tables", 0, 1, 0, 1, MKD_NOTABLES }, { "header", "pandoc-style headers", 0, 1, 0, 1, MKD_NOHEADER },