diff --git a/src/main/java/cc/fascinated/bat/features/logging/LogFeature.java b/src/main/java/cc/fascinated/bat/features/logging/LogFeature.java index 0a82dde..6f22bc7 100644 --- a/src/main/java/cc/fascinated/bat/features/logging/LogFeature.java +++ b/src/main/java/cc/fascinated/bat/features/logging/LogFeature.java @@ -58,6 +58,9 @@ public class LogFeature extends Feature { if (content == null) { return "No content"; } + if (content.contains("`")) { // Workaround for markdown formatting + content = content.replace("`", "'"); + } // More than 512 characters or is more than 4 lines if (content.length() > 512 || content.chars().filter(ch -> ch == '\n').count() > 4) { return "*Content too long, [click here to view]("+PasteUtils.uploadPaste(content).getUrl()+")*";