summaryrefslogtreecommitdiff
path: root/src/creole.c
AgeCommit message (Collapse)Author
2024-03-07feat(creole): Add nowiki blocksLinnnus
2024-02-17refactor(creole): Use starts_with everywhereLinnnus
2024-02-17feat(creole): support inline nowikiLinnnus
2024-02-17feat(creole): handle escaped raw URLsLinnnus
2024-02-17fix(creole): Handle escapes properlyLinnnus
A faulty boolean expression was to blame. This patch also adds the necessary tests to prevent relapses (i forgot det technical term).
2024-02-17feat(creole): Support strong/boldLinnnus
2024-02-17chore: avoid sign warningsLinnnus
2024-02-16feat(creole): Add emphasisLinnnus
2024-02-16fix(creole): Add special case for "." at end of raw URLLinnnus
2024-02-16feat(creole): Support raw URLsLinnnus
2024-02-14feat(creole): Support [[https://example.com|links]]Linnnus
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.
2024-02-04feat(creole): escape special HTML charactersLinnnus
2024-02-04feat(creole): Add basic paragraphsLinnnus
In the future, we may need to keep track of state, if encountering block-level elements ends paragraphs.
2024-02-04feat(creole): support headersLinnnus
2024-02-04feat: initial commitLinnnus
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).