Conversation
Co-authored-by: Jakubk15 <77227023+Jakubk15@users.noreply.github.com>
…or MineDown Co-authored-by: Jakubk15 <77227023+Jakubk15@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add MineDown support for Markdown in Minecraft
Add MineDown support
Feb 7, 2026
Member
2026-02-07.15-29-34.mp4 |
Rollczi
reviewed
Feb 7, 2026
Comment on lines
+142
to
+161
| if (this.settings.isMineDownEnabled()) { | ||
| MineDown mineDown = new MineDown(rawMessage); | ||
|
|
||
| if (!sender.hasPermission(PERMISSION_ALL)) { | ||
| if (!sender.hasPermission("chatformatter.decorations.*")) { | ||
| mineDown.disable(MineDownParser.Option.SIMPLE_FORMATTING); | ||
| } | ||
| if (!(sender.hasPermission("chatformatter.hover") && sender.hasPermission("chatformatter.click"))) { | ||
| mineDown.disable(MineDownParser.Option.ADVANCED_FORMATTING); | ||
| } | ||
| if (!sender.hasPermission("chatformatter.color.*")) { | ||
| mineDown.disable(MineDownParser.Option.LEGACY_COLORS); | ||
| } | ||
| } | ||
|
|
||
| componentMessage = mineDown.toComponent(); | ||
| } else { | ||
| TagResolver permittedTags = this.providePermittedTags(sender); | ||
| rawMessage = Legacy.legacyToAdventure(rawMessage, permission -> sender.hasPermission(permission)); | ||
| componentMessage = EMPTY_MESSAGE_DESERIALIZER.deserialize(rawMessage, permittedTags); |
Member
There was a problem hiding this comment.
bez sensu czemu stara logika jest wykluczana
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MineDown now works as an add-on to MiniMessage: its syntax is rewritten into MiniMessage tags before the normal pipeline runs, so MineDown, MiniMessage and legacy colors can be mixed in one message. Each MineDown element is translated only when the sender is permitted to use the matching MiniMessage tag, so both share one permission model. The minedown-adventure SNAPSHOT dependency and its repository are removed. Also: - Keep URLs unchanged by legacy codes and MineDown formatting. - Require chatformatter.color.* for legacy hex colors (&#rrggbb, &x...). - Leave quoted link arguments untouched by MineDown simple formats. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Blocked by #208
Adds MineDown as an optional formatting engine for player messages, enabling Markdown-like syntax (
**bold**,##italic##,__underlined__,~~strikethrough~~,[text](url)).Changes
de.themoep:minedown-adventure:1.7.6-SNAPSHOTadded with shadow relocation undercom.eternalcode.formatter.libsmineDownSupportboolean inPluginConfig(defaultfalse). When enabled, player messages are parsed via MineDown instead of the MiniMessage pipelinechatformatter.decorations.*→SIMPLE_FORMATTINGchatformatter.hover+chatformatter.click→ADVANCED_FORMATTINGchatformatter.color.*→LEGACY_COLORS&color codes nativelyConfig example
Players can then type:
**bold** and ~~struck~~ and [click me](https://example.com)Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
hub.spigotmc.org/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8(dns block)repo.minebench.de/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.