From 1faa52052624e7c03256df0c63c43f5d40ddb57a Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Mon, 2 Nov 2015 03:58:09 -0200 Subject: content-parser: added basic rst-like directives support this patch adds support to something similar to reStructuredText directives [1]. the directive loader isn't implemented yet. also, the current implementation is stricter and differs a lot from the reStructuredText spec. documentation pending. this patch also fixes a few old parser bugs. [1] http://docutils.sourceforge.net/docs/ref/rst/directives.html --- src/directives.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/directives.h (limited to 'src/directives.h') diff --git a/src/directives.h b/src/directives.h new file mode 100644 index 0000000..fa758e2 --- /dev/null +++ b/src/directives.h @@ -0,0 +1,17 @@ +/* + * blogc: A blog compiler. + * Copyright (C) 2015 Rafael G. Martins + * + * This program can be distributed under the terms of the BSD License. + * See the file LICENSE. + */ + +#ifndef _DIRECTIVES_H +#define _DIRECTIVES_H + +#include "utils/utils.h" + +char* blogc_directive_loader(const char *name, const char *argument, + b_trie_t *params); + +#endif /* _DIRECTIVES_H */ -- cgit v1.2.3-18-g5258