Azareal / Gosora

Gosora is an ultra-fast and secure forum software written in Go that balances usability with functionality.
https://gosora-project.com/
GNU General Public License v3.0
164 stars 16 forks source link

Rewrite parser pipeline #10

Open Azareal opened 6 years ago

Azareal commented 6 years ago

We're probably going to want a single source of truth rather than supporting numerous formats (Markdown, HTML, and BBCode) in plugins and possibly risk markup showing up when one of these plugins is disabled.

The single source of truth, for instance, could be HTML which the WYSIWYG naturally consumes anyway. Each plugin (or possibly even the core) could take in their respective formats and translate that to HTML.

Translating it back on-demand on the client-side for any BBCode Editors (if there are any) shouldn't be too costly in any case.