From d38f82f6462af4e5aad6a2c776f5c00ce5b13c87 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Thu, 1 Feb 2024 22:59:38 +0100 Subject: feat: initial commit Here is a small overview of the state of the project at this first commit. I have basic Git Repo -> HTML working, and a plan for how setting up an actual server would work (mainly, NGINX + a git hook to rebuild). The main thing I'm working on right now is parsing WikiCreole, though I am starting to wonder if this is the right langauge. WikiCreole is pretty irregular and has a lot of edge cases (e.g. around emphasis). --- src/creole.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/creole.h (limited to 'src/creole.h') diff --git a/src/creole.h b/src/creole.h new file mode 100644 index 0000000..ac3e706 --- /dev/null +++ b/src/creole.h @@ -0,0 +1,15 @@ +#ifndef CREOLE_H +#define CREOLE_H + +// Defines a module for rendering Wiki Creole [1] to a file. This functionality +// of this module is based on the formal grammar [2] of Wiki Creole. +// +// [1]: http://www.wikicreole.org/wiki/Home +// [2]: http://www.wikicreole.org/wiki/EBNFGrammarForWikiCreole1.0 + +#include // size_t +#include // FILE + +void render_creole(FILE *out, const char *source, size_t length); + +#endif -- cgit v1.2.3