GithubHelp home page GithubHelp logo

mondrethos / bbcode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rpnation/bbcode

0.0 0.0 0.0 686 KB

RpNation's Official BBCode Implementation for Discourse

License: GNU General Public License v3.0

Shell 0.08% JavaScript 73.74% Ruby 3.81% Handlebars 0.81% SCSS 21.55%

bbcode's Introduction

BBCode

RpNation's Official BBCode Implementation for Discourse

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

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.

Features/Planned

Ⓜ️ = The BBCode also has a markdown version

🚧 = In progress or needs CSS.

⌨️ = 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.

General

  • Refactor stylesheets to fit common discourse styling variables

Text Formatting

  • Headers & Sub-Headers Ⓜ️
  • Highlights
  • Justified Text
  • Blockquotes
  • Sub Script ⌨️
  • Super Script ⌨️
  • Google Font Library
  • HTML Comment⌨️
  • Paragraph Indent
  • Bold, Italic, Underline, Strikethrough Ⓜ️
  • Color
  • Font Size
  • Left, Center, Right
  • Spoiler
  • Line Break
  • NOBR/No Line Break
  • Inline Spoiler

Layout & Design

  • Dividers
  • Image Float
  • Fieldsets
  • Sides
  • Tabs
  • Tables
  • Center Block
  • Background
  • Border
  • Scroll Box
  • Div Box
  • Anchors
  • Rows & Columns

Media & Embeds

  • Google Docs(PDF)
  • Height Restrict
  • Image
  • Challonge - Add as an iframe supported site in settings instead.

Aesthetics

  • Print
  • Text Message
  • Blocks
  • Progress Bar
  • Sticky Note
  • Mail
  • Newspaper
  • Checks
  • Font Awesome Icons
  • OOC

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 contained 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.

bbcode's People

Contributors

mshultz avatar alteras1 avatar blythechan avatar kyuukestu avatar mondrethos avatar rhababo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.