Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BBCode

RpNation's Official BBCode Implementation for Discourse

See: [https://www.rpnation.com]

Ⓜ️ = The BBCode also has a markdown version

🚧 = In progress or needs CSS.

✔️ = Complete.

⌨️ = BBCode also has an HTML equivalent.

🎉 = Powered by official Discourse Addon.

☠️ = Do not proceed. BBob, Markdown, and/or Discourse do not like this code. Unable to be rebaked.

Text Formatting Layout & Design Media & Embeds Aesthetics
Headers & Sub-Headers Ⓜ️ Dividers Google Docs(PDF) Print
Highlights ✔️ Image Float Height Restrict Text Message
Justified Text Fieldsets Challonge Blocks
Blockquotes Sides Progress Bar
Sub Script ⌨️ Tabs Sticky Note
Super Script ⌨️ Tables Mail
Google Font Library Center Block Newspaper
HTML Comment⌨️ Background Checks
Paragraph Indent Border Font Awesome Icons
Bold, Italic, Underline, Strikethrough Ⓜ️✔️ Accordions OOC
Color Scroll Box
Font Size Div Box
Left, Center, Right ✔️ Anchors
Spoiler Rows & Columns
NOBR Chapters
Inline Spoiler No Line Break
Paragraph Indent Line Break
HTML Comment

The goal of this repo and plugin is to provide users with the BBCode suite that they have grown accustomed to when it comes to using our site before our migration to Discourse and make sure that old posts rebake correctly. Above in the chart is marked our status on each BBCode which will hopefully co-exist in tandom even with the markdown/htlm versions provided in the box experience by the Discourse Software.

Credit

❤️ to Nikolay Kost (JiLiZART) for BBob GitHub - JiLiZART/BBob: ⚡️Blazing-fast js-bbcode-parser, bbcode js, that transforms and parses to AST with plugin support in pure javascript, no dependencies

Steps to start local Discourse docker

Inside the discourse directory, run

d/boot_dev -p

# In one terminal:
d/rails s

# And in a separate terminal
d/ember-cli

To kill the container

d/shutdown_dev

For more, see the Discourse Docker Guide

Architecture

The architecture of this project is for all BBCode Parser related code to be contaned in /bbcode-src, which would then be minified into a module and added to the appropriate location in /assets/javascripts to be used by the discourse plugin proper. This is to work around the weird way discourse requires libraries to be loaded in. There will be a Rollup config and github action setup to automate minifying and moving the module.

Honestly, if anyone has a better solution, please send help.

About

bbcode fork - add preserve whitespace

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages