flexmark-java icon indicating copy to clipboard operation
flexmark-java copied to clipboard

How to build a "Minecraft" extension?

Open xiaoACE6716 opened this issue 2 years ago • 1 comments

Hello everyone! I trying to make a Kook-Minecraft bridge for minecraft Server ,and the last thing I want to try convert Kook's markdown text to minecraft formatting codes.(What is a Kook?Something like discord.) some example: italics = *italics* -> §oitalics§r bold = **bold** -> §lbold§r bold italics = ***bold italics*** -> §l§obold italics§r§r strikeout = ~~strikeout~~ -> §mstrikeout§r underline = (ins)underline(ins) -> §nunderline§r I would like to find a way to convert the above examples (and all other combinations of markdown text) to something like this. I've tried using regex,but it doesn't work well when it's complicated. try with regex code link I need some suggestions as where to start from? If anyone has any idea how to go about doing this in java, help would be appreciated.

xiaoACE6716 avatar Mar 05 '23 17:03 xiaoACE6716

Have you tried asking on https://stackoverflow.com/?

ghost avatar May 29 '23 19:05 ghost