phoenix-bbcode

1.4.0 • Public • Published

Renders BBCode.

var html = bbcode.render('[b]Hello, world![/b]');

bbcode.render takes an optional second argument, options, an object whose properties alter the renderer’s behaviour in some way. The available options are:

Option name Description Default
automaticParagraphs Whether <p> elements should be created automatically based on line breaks, as in Markdown. false

Dependents (0)

Package Sidebar

Install

npm i phoenix-bbcode

Weekly Downloads

4

Version

1.4.0

License

ISC

Last publish

Collaborators

  • charmander