Skip to content

MarkdownParser

This parser is every limited as its just translates Markdown to BBCode This parser also adds :emojis: and icons {icon:name} add Rakugo variables with <var_name>

Extends ExtendedBBCodeParser

See

Markdown

Vars

italics

default value : "*"

choose to use * or _ to open/close italics tag

bold

default value : "**"

choose to use * or _ to open/close bold tag

points

default value : "-"

choose to use - or * to make points in bulleted list

Funcs

parse

  • text: String

returns given Markdown parsed into BBCode

parse_spaces

  • text: String

Parse @space=x, that it add space in text in size of x

parse_headers

  • text: String

Parse md # Headers in given text into BBCode

parse_imgs

  • text: String

Parse md images to in given text to BBCode Example of md image: ![](path/to/img)

parse_imgs_size

  • text: String

Parse md images with size to in given text to BBCode Example of md image with size: ![height x width](path/to/img)

  • text: String

Parse md links to in given text to BBCode Examples of md link: [link](path/to/file.md) [https://www.example.com](https://www.example.com)

parse_hints

  • text: String

Parse md hint to in given text to BBCode @[text](hint)

parse_italics

  • text: String

Parse md italics to in given text to BBCode Example of md italics:

  • If italics is * then *italics*
  • If italics is _ then _italics_

parse_bold

  • text: String

Parse md bold to in given text to BBCode Example of md bold:

  • If bold is ** then **bold**
  • If bold is ** then __bold__

parse_strike_through

  • text: String

Parse md strike through to in given text to BBCode Example of md strike through: ~~strike through~~

parse_code

  • text: String

Parse md code to in given text to BBCode Example of md code:

  • one line code: `code`
  • multiline code: ```code```

parse_table

  • text: String

Parse md table to in given text to BBCode Example of md table:

@tabel=2 {
| cell1 | cell2 |
}

parse_color_key

  • text: String

Parse md color name from Color class tag to in given text to BBCode

parse_color_hex

  • text: String

Parse md color hex to in given text to BBCode

parse_effect

  • text: String
  • effect: String
  • args: Array

Parse md effects to in given text to BBCode

parse_keyword

  • text: String
  • keyword: String
  • tag: String

Parse md keyword to in given text to BBCode

parse_points

  • text: String

Parse md points list to in given text to BBCode

parse_number_points

  • text: String

Parse md number points list to in given text to BBCode

parse_list

  • text: String
  • open: String
  • close: String
  • regex: String

Parse md list to in given text to BBCode