Skip to content

Commit d14e005

Browse files
Use modified MineDown to fix color issue
1 parent 87561b6 commit d14e005

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -754,9 +754,9 @@
754754
<artifactId>rollbar-java</artifactId>
755755
</dependency>
756756
<dependency>
757-
<groupId>de.themoep</groupId>
758-
<artifactId>minedown</artifactId>
759-
<version>1.7.1-SNAPSHOT</version>
757+
<groupId>com.github.PotatoCraft-Studio</groupId>
758+
<artifactId>MineDown</artifactId>
759+
<version>1.7.1-modified</version>
760760
<scope>compile</scope>
761761
</dependency>
762762
<dependency>

src/main/java/org/maxgamer/quickshop/util/Util.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ public static String parseColours(@Nullable String text) {
11961196
parser.reset();
11971197
//A hack for saving reset character
11981198
text = text.replace("&r", "&l&r").replace("§r", "§l§r");
1199-
return toLegacyText(parser.enable(MineDownParser.Option.LEGACY_COLORS).backwardsCompatibility(true).parse(text).create());
1199+
return toLegacyText(parser.enable(MineDownParser.Option.LEGACY_COLORS).enable(MineDownParser.Option.APPEND_COLORS_TO_EMPTY_STRING).backwardsCompatibility(true).parse(text).create());
12001200
}
12011201

12021202
/**

0 commit comments

Comments
 (0)