-
Notifications
You must be signed in to change notification settings - Fork 0
/
bbcode.rb
28 lines (23 loc) · 1.57 KB
/
bbcode.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# frozen_string_literal: true
require_relative '../lib/just-ansi'
puts JustAnsi.bbcode <<~TEXT
✅ [b 2]Just Ansi[/b] — BBCode:[/]
[b]Bold[/b] [\\b]...[\\/b] or [\\bold]...[\\/bold]
[faint]Faint[/faint] [\\faint]...[\\/faint]
[i]Italic[/i] [\\i]...[\\/i] or [\|italic]...[\\/italic]
[inv]Invert[/inv] [\\inv]...[\\/inv] or [\\invert]...[\\/invert]
[strike]Strike[/strike] [\\strike]...[\\/strike]
[h]Hide[/h] [\\h]...[\\/h] or [\\hide]...[\\/hide] or [\\conceal]...[\\/conceal]
[blink]Slow blink[/blink] [\\blink]...[\\/blink] or [\\slow_blink]...[\\/slow_blink]
[u]Underline[/u] [\\u]...[\\/u] or [\\underline]...[\\/underline]
[uu]Double underline[/uu] [\\uu]...[\\/uu] or [\\double_underline]...[\\/double_underline]
[cu]Curly underline[/cu] [\\cu]...[\\/cu] or [\\curly_underline]...[\\/curly_underline]
[dau]Dashed underline[/dau] [\\dau]...[\\/dau] or [\\dashed_underline]...[\\/dashed_underline]
[dou]Dotted underline[/dou] [\\dou]...[\\/dou] or [\\dotted_underline]...[\\/dotted_underline]
[fraktur]Fraktur[/fraktur] [\\fraktur]...[\\/fraktur]
[framed]Framed[/framed] [\\framed]...[\\/framed]
[encircled]Encircled[/encircled] [\\encircled]...[\\/encircled]
[ovr]Overlined[/ovr] [\\ovr]...[\\/ovr] or [\\overlined]...[\\/overlined]
[sub]Subscript[/sub] [\\sub]...[\\/sub] or [\\subscript]...[\\/subscript]
[sup]Superscript[/sup] [\\sup]...[\\/sup] or [\\superscript]...[\\/superscript]
TEXT