Skip to content

Commit

Permalink
Merge pull request #17 from Pantera07/fix
Browse files Browse the repository at this point in the history
Fix 5 backticks
  • Loading branch information
Scarsz authored Dec 19, 2023
2 parents 4c30a43 + 696ea1b commit 6aadecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/main/java/me/scarsz/jdaappender/LogItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected String format(@NotNull HandlerConfig config) {
StringBuilder builder = new StringBuilder();

if (config.getPrefixer() != null) builder.append(config.getPrefixer().apply(this));
if (message != null) builder.append(config.isUseCodeBlocks() ? message.replace("```", "`\u200B`\u200B`") : handler.escapeMarkdown(message));
if (message != null) builder.append(config.isUseCodeBlocks() ? message.replace("```", "`\u200B`\u200B`\u200B") : handler.escapeMarkdown(message));
if (config.getSuffixer() != null) builder.append(config.getSuffixer().apply(this));
if (throwable != null) {
try (StringWriter stringWriter = new StringWriter()) {
Expand Down

0 comments on commit 6aadecd

Please sign in to comment.