diff --git a/backend/src/main/java/io/papermc/hangar/util/BBCodeConverter.java b/backend/src/main/java/io/papermc/hangar/util/BBCodeConverter.java index 4ad8b517a..01f534f00 100644 --- a/backend/src/main/java/io/papermc/hangar/util/BBCodeConverter.java +++ b/backend/src/main/java/io/papermc/hangar/util/BBCodeConverter.java @@ -21,7 +21,6 @@ public class BBCodeConverter { // Remove tags REPLACERS.put("color", (tag, tagArg, content) -> content); REPLACERS.put("left", (tag, tagArg, content) -> content); - REPLACERS.put("center", (tag, tagArg, content) -> content); REPLACERS.put("right", (tag, tagArg, content) -> content); REPLACERS.put("u", (tag, tagArg, content) -> content); REPLACERS.put("quote", (tag, tagArg, content) -> content); @@ -36,6 +35,7 @@ public class BBCodeConverter { REPLACERS.put("s", (tag, tagArg, content) -> "~~" + content + "~~"); REPLACERS.put("img", (tag, tagArg, content) -> "![" + content + "](" + content + ")"); REPLACERS.put("media", (tag, tagArg, content) -> "youtube".equals(tagArg) ? "@[YouTube](https://youtu.be/" + content + ")" : null); + REPLACERS.put("center", (tag, tagArg, content) -> "