Steam BB Code. Text written by markdown like syntax.
$ npm install md2bb
var md2bb = require('md2bb');
console.log(md2bb.parse('**Markdown**'));
// OUTPUT: [b]Markdown[/b]
- Write steam review (and guide) more easily
About Steam BBCode format is here.
Name | Markdown | BBCode |
---|---|---|
Header | # string | [h1]string[/h1] |
Bold | **string** | [b]string[/b] |
Underline | _string_ | [u]string[/u] |
Italic | *string* | [i]string[/i] |
Strike | ~string~ | [strike]string[/strike] |
Spoiler | ~~string~~ | [spoiler]string[/spoiler] |
Noparse | ``text`` | [noparse]text[/noparse] |
Url | [linkname](example.com) | [url=example.com]linkname[/url] |
List | * item | [list][*]item[/list] |
OList | 1. item | [olist][*]item[/olist] |
Quote | > text | [quote]text[/quote] |
Quote(with author) | >[yourname] text | [quote=yourname]text[/quote] |
Code | `text` | [code]text[/code] |
tenmihi
MIT