Package Exports
- md2bb
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (md2bb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 | [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