summaryrefslogtreecommitdiff
path: root/util/bbcode-test.pl
AgeCommit message (Collapse)AuthorFilesLines
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>