ConsoleMarkdownSymbols top-level property

Markdown ConsoleMarkdownSymbols
final

Markdown Cheatsheet - Symbols

Symbol Property Example Result
** bold **text** text
* italic *text* text
__ underline __text__
~~ strikethrough ~~text~~ text
^ superscript ^text^ text
~ subscript ~text~ text
___ double-underline ___text___
!! blink !!text!!
!!! rapid-blink !!!text!!!
|| hidden ||text||
^^ inverse ^^text^^
` dim ``text\

Implementation

// ignore: non_constant_identifier_names
final ConsoleMarkdownSymbols = Markdown.map({
  // Formatting
  '[**]': (text, match) => chalk.bold(text),
  '[*]': (text, match) => chalk.italic(text),
  '[___]': (text, match) => chalk.doubleunderline(text),
  '[__]': (text, match) => chalk.underline(text),
  '[~~]': (text, match) => chalk.strikethrough(text),

  '[!!!]': (text, match) => chalk.rapidblink(text),
  '[!!]': (text, match) => chalk.blink(text),
  '[`]': (text, match) => chalk.dim(text),
  '[||]': (text, match) => chalk.hidden(text),
  '[^^]': (text, match) => chalk.inverse(text),
  '[^]': (text, match) => chalk.superscript(text),
  '[~]': (text, match) => chalk.subscript(text),
});