discord-md-tags
A collection of tag functions for discord markdown
These are Tag Functions for use with Tagged Templates
Usage is simple:
const bold italic = ; console;// Logs: "**text**" console;// Logs: "**bold *bold and italic***"
This works the same for italic
, underline
, code
, spoiler
, strikethrough
, quote
.
codeblock
also works the same, but has a bit more:
const codeblock = ; console;// Logs: "```\ntext```" console;// Logs: "```md\ntext```"
Find the native javascript nesting a bit ugly? Find beauty by making composite formats with the included compose
util!
const bold italic compose = ; // :(console;// Logs: "***text***" // :)console;// Logs: "***text***"