Markdown

Markdowns are what you do in discord to make text bolded, strikethrough, italic and etc... what does me and a wheel have in common? we're both tired

markdown.yml:

# EasyChat Markdown Configuration
# This file controls how markdown formatting is handled in chat messages

# Enable or disable the markdown feature entirely
enabled: true

# Permission required to use markdown formatting (set to "" for no permission required)
permission: "easychat.markdown"

# Individual formatting options
formatting:
  # Bold formatting with **text**
  bold:
    enabled: true
    permission: "easychat.markdown.bold"
    start_delimiter: "**"
    end_delimiter: "**"
    minimessage_format: "<bold>{text}</bold>"
  
  # Italic formatting with *text* or _text_
  italic:
    enabled: true
    permission: "easychat.markdown.italic"
    start_delimiter: "*"
    end_delimiter: "*"
    # Alternate delimiter
    alt_start_delimiter: "_"
    alt_end_delimiter: "_"
    minimessage_format: "<italic>{text}</italic>"
  
  # Strikethrough formatting with ~~text~~
  strikethrough:
    enabled: true
    permission: "easychat.markdown.strikethrough"
    start_delimiter: "~~"
    end_delimiter: "~~"
    minimessage_format: "<strikethrough>{text}</strikethrough>"
  
  # Underline formatting with __text__
  underline:
    enabled: true
    permission: "easychat.markdown.underline"
    start_delimiter: "__"
    end_delimiter: "__"
    minimessage_format: "<underlined>{text}</underlined>"

# Advanced formatting options
options:
  # Whether to allow nested formatting (e.g. **bold _italic_ text**)
  allow_nested: true
  
  # Whether to escape markdown when preceded by a backslash (e.g. \*not italic\*)
  allow_escaping: true
  
  # Characters that are guaranteed to be escaped to prevent MiniMessage injection
  # These will be automatically escaped in the text content
  escape_chars: ["<", ">"]
  
  # Maximum formatting elements per message (to prevent spam)
  max_per_message: 10
  
  # Debug mode for markdown parsing (logs detailed information about markdown processing)
  debug: false 

Last updated