cld-ssg

The static site generator (to be) used for hellocld.com
git clone git://git.hellocld.com/cld-ssg
Log | Files | Refs | README

commit bfc869b60219bd7dc7761942835eef9ed20ecd7f
parent 8035274197c9d4ab8d927391c3fe0aaa7a99a4e5
Author: Christopher Ray Langford <chris@hellocld.com>
Date:   Thu,  3 Oct 2019 15:51:39 -0400

Post parsing now allows raw HTML (CMARK_OPT_UNSAFE)

Diffstat:
Mmain.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.c b/main.c @@ -113,7 +113,7 @@ struct post *create_post(const char *file) char *tmp = read_text(buf, MAX_POST_CHARS); printf("Parsing post to cmark_node...\n"); struct cmark_node *t_root = cmark_parse_document( - tmp, strlen(tmp), CMARK_OPT_DEFAULT); + tmp, strlen(tmp), CMARK_OPT_UNSAFE); free(tmp); printf("Extracting title...\n"); /* extract the post title from the first header in the post */