0.1.2 • Published 8 years ago
md2bb v0.1.2
md2bb
Steam BB Code. Text written by markdown like syntax.
Installation
$ npm install md2bbUsage
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 | h1string/h1 |
| Bold | **string** | bstring/b |
| Underline | _string_ | ustring/u |
| Italic | *string* | istring/i |
| Strike | ~string~ | strikestring/strike |
| Spoiler | ~~string~~ | spoilerstring/spoiler |
| Noparse | ``text`` | noparsetext/noparse |
| Url | [linkname](example.com) | url=example.comlinkname/url |
| List | * item | listitem/list |
| OList | 1. item | olistitem/olist |
| Quote | > text | quotetext/quote |
| Quote(with author) | >yourname text | quote=yournametext/quote |
| Code | `text` | codetext/code |
Author
tenmihi
License
MIT