1.0.7 • Published 3 years ago
@thoughtsunificator/bbcode-parser v1.0.7
bbcode-parser
bbcode-parser is a JavaScript implementation of the lightweight markup language BBCode.
If you wish to convert BBCode to HTML or HTML to BBCode see bbcode-parser-template.
Getting Started
Installing
npm install @thoughtsunificator/bbcode-parser
Usage
import { Parser } from '@thoughtsunificator/bbcode-parser'
const bbDocument = Parser.parse("[b]Hey, thanks![/b]") // return a BBDocument instance
const bbElement bbDocument.documentElement.children[0] // Returns a bbElement
const text = bbDocument.documentElement.children[0].textContent // returns "Hey, thanks!"
API
See https://thoughtsunificator.github.io/bbcode-parser.
Try it out!
1.0.7
3 years ago
1.0.6
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.1
3 years ago
0.6.1
3 years ago
0.5.9
3 years ago
0.6.0
3 years ago
0.5.8
3 years ago
0.5.7
3 years ago
0.5.6
3 years ago
0.5.4
3 years ago
0.5.3
3 years ago
0.5.2
3 years ago
0.5.1
3 years ago
0.5.0
3 years ago
0.4.9
3 years ago
0.4.8
3 years ago
0.4.7
3 years ago
0.4.6
3 years ago
0.4.5
3 years ago
0.4.4
3 years ago
0.4.3
3 years ago
0.4.2
3 years ago
0.4.1
3 years ago
0.3.9
3 years ago