summaryrefslogtreecommitdiff
path: root/util/bbcode-test.pl
AgeCommit message (Collapse)AuthorFilesLines
28 hours!BREAKING! Restructure directory layout for generated & runtime filesYorhel1-251/+0
My testing, deployment and backup scripts were getting more complicated with files from various stages being lumped into a single directory structure, so all generated files (= anything touched by 'make') and runtime files (= anything touched by the web backend or multi) have now been moved into separate directories. These directories are also configurable with $VNDB_GEN and $VNDB_VAR, making it possible to manage multiple instances from a single source checkout. I also got rid of *data/* and *dl/* while I was at it, and moved *static/st/* (that is, the screenshot thumbnails) to */sf.t/*, to be consistent with the newer and more flexible image directory naming scheme. This commit breaks all existing installations and upgrading requires manual action. General upgrade instructions: # BEFORE doing a checkout of this commit make clean # AFTER make mkdir -p var/static var/log mv static/st var/static/sf.t mv static/{sf,ch,cv}{,.orig} var/static/ mv data/conf.pl var/ mv data/log var/ mv data/hibp var/ mv dl var/ util/setup-var.sh Use `git status` find leftover files to clean up or move. Don't forget to update conf.pl and web server configuration to make sure they access the new paths.
2023-04-15CSS: Use <strong>/<span> instead of <b> for bold/marker tagsYorhel1-10/+10
To reserve <b> for the standout styling.
2020-09-02BBCode: Consolidate bb2html & bb2text + only convert ids in thread titlesYorhel1-24/+32
Fixing bb2html to only convert ids would complicate options a lot, adding a new formatting function to only convert ids would make sense, but then all formatting functions kind of look alike, so I figured a single bb_format() to support all use cases may be a better approach. Trigger for this was that people do (understandably) put [spoiler] in thread titles, and that should not be interpreted as the spoiler tag.
2020-08-31BBCode: Add support for w+ and w+.+ dblinksYorhel1-6/+6
2020-07-22BBCode: Add support for [b], [i], [s], and [u] formatting codesYorhel1-0/+16
2019-09-26Disallow usernames that look like DB identifiers + minor BBCode fixYorhel1-3/+3
A '-' before or after a DB identifier now counts as a "word character", meaning in "d5-something" won't turn that "d5" into a link.
2018-02-08Store d+ pages in the DB as versioned entries + use markdownYorhel1-0/+4
This touches a bunch of things: - Adds a new first-class database entry type - Removes the d+.+.+ BBCode link syntax, adds a new d+#+ and d+#+.+ link syntax (references have been updated where possible) - Adds a new dependency on Text::MultiMarkdown
2018-01-08BBCode: Fix parsing of tags in [something[url=..]Yorhel1-4/+6
https://vndb.org/t2520.233 The old bb2html() blindly replaced [url=..] anywhere inside the matched token, and did not require that the [url=..] was itself the token. I've made the tag matching more strict to make sure that [something[url=..] is now properly tokenized. This also affects other tags, so it's likely that there's some input that the old bb2html() would still have handled differently.
2018-01-06BBCode: Fix word boundary check when dblink is the first tokenYorhel1-0/+5
2018-01-06Add bb2text() and use it for release notes & open graph tagsYorhel1-8/+39
2018-01-06Rewrite bb2html() to be more flexibleYorhel1-0/+185
This is based on the API that I described in https://vndb.org/t5564.12 It's mostly bug-compatible with the old bb2html(), main differences: - <br /> -> <br> for no reason - Doesn't sporadically add a wrong </div> - $rmwhitespace now also after [/code] Most of the test cases were contributed by flan <flan@flande.re>