diff --git a/lib/gis/parser_rest_md.c b/lib/gis/parser_rest_md.c index c607acc4214..a5c74874202 100644 --- a/lib/gis/parser_rest_md.c +++ b/lib/gis/parser_rest_md.c @@ -517,7 +517,7 @@ void print_escaped_for_md_keywords(FILE *f, const char *str) fputc(*s, f); } } - fprintf(f, ".html)"); + fprintf(f, ".md)"); } else { /* first and other than second keyword */ if (st->n_keys > 0 && strcmp(st->module_info.keywords[0], str) == 0) { @@ -532,13 +532,14 @@ void print_escaped_for_md_keywords(FILE *f, const char *str) fputc(*s, f); } } - fprintf(f, ".html)"); + fprintf(f, ".md)"); } else { /* keyword index */ char *str_link; str_link = G_str_replace(str_s, " ", "%20"); - fprintf(f, "[%s](keywords.html#%s)", str_s, str_link); + G_str_to_lower(str_link); + fprintf(f, "[%s](keywords.md#%s)", str_s, str_link); G_free(str_link); } }