Age | Commit message (Collapse) | Author |
|
I'll be uploading the project to GitHub soon. GitHub renders Markdown
nicely.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I don't know whether this should be considered a bug or not.
I think it's pretty reasonable behavior to not recognize empty tags,
since the writer probably isn't thinking about their function in the
markup if there's nothing inside.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A faulty boolean expression was to blame.
This patch also adds the necessary tests to prevent relapses (i forgot
det technical term).
|
|
|
|
|
|
This patch a) gives the different binaries' main() files more meaning
full names and b) adds the creole binary, which works like smu except
for my dialect of Creole (which should hopefully approach proper Creole
as this repo matures).
|
|
|
|
|
|
|
|
|
|
This patch updates the flake to use llvmPackages.stdenv rather than the
default pkgs.stdenv. This fixes an issue on MacOS where the ASAN runtime
library isn't found. I have no idea why.
|
|
|
|
This patch adds support for freelinks.
This patch also introduced hprint() – a function to print text while
escaping HTML characters. This isn't very DRY since that's also
implemented in do_replacements(), but the abstraction necessary to reuse
this functionality introduced disproportional amount of mental overhead.
|
|
This patch also introduces print_escaped_ze() – an alternative to
print_escaped() that takes a zero-terminated string. I do this because I
almost made a silly copy/paste mistake with a line like:
print_escaped(stdout, tests[i].input, strlen(tests[i].output));
|
|
|
|
|
|
|
|
In the future, we may need to keep track of state, if encountering
block-level elements ends paragraphs.
|
|
|
|
|
|
Since -fsanitize essentially acts as -lasan, it should also be passed
when linking.
|
|
This removes *a ton* of code for dealing with reading files and what
not. Now instead we just store the test cases as a huge array in the
code.
I have no idea why I didn't just do this from the start??
|
|
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).
|