Markdown
Krobot provides a simple Markdown helper using the Markdown
class :
Function | Modifier | Result |
---|---|---|
Markdown#bold | **text** | text |
Markdown#italic | _text_ | text |
Markdown#underline | __text__ | (Only on discord) |
Markdown#strikeout | ||
Markdown#smallCode | `text` | text |
Code
Markdown.code("public static void main(String[] args)\n{\n}\n", /* optional */ "java");
=>
`̣``java
public static void main(String[] args)
{
}
`̣``
=>
public static void main(String[] args)
{
}