md2bb
v0.1.2
Published
steam-bbcode written by markdown like syntax
Downloads
10
Readme
md2bb
Steam BB Code. Text written by markdown like syntax.
Installation
$ npm install md2bb
Usage
var md2bb = require('md2bb');
console.log(md2bb.parse('**Markdown**'));
// OUTPUT: [b]Markdown[/b]
Features
- Write steam review (and guide) more easily
Syntax
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] |
Author
tenmihi
License
MIT