Kunena-Forum icon indicating copy to clipboard operation
Kunena-Forum copied to clipboard

Extend bbcode parser to support markdown and html

Open fxstein opened this issue 14 years ago • 7 comments

Extend the bbcode parser and add various options.

Add configurable support for

  • markdown (similar to wiki or github)
  • limited html - safe tags, with limited whitelist and blacklist support
  • joomla tags
  • other options?

While these might end up in separate trackers, I combined them for now to spark some bigger thinking on how to support multiple language options within the Kunena parser

fxstein avatar Jul 05 '11 19:07 fxstein

Just a note: It's very easy to support html (even all the tags) in NBBC, but the parser is not good on mixing different tags in one input and the parser is totally useless on markdown and similar syntaxes as it uses tags.

On the other hand supporting markup should be easy..

mahagr avatar Jul 06 '11 07:07 mahagr

We might have to extend it. Yes markdown should be easy, so should be html if we limit do a short list of supported html.

The more we make native in our editor/post engine, the easier we can support various things.

fxstein avatar Jul 06 '11 14:07 fxstein

I believe that there is already existing class which gives NBBC html support (it also verifies that html is valid)..

mahagr avatar Jul 06 '11 17:07 mahagr

Is that part of NBBC that we added or external? (link?)

I'd like to simply hit a couple check boxes in the config to enable the languages admins want to support for their site.

fxstein avatar Jul 06 '11 18:07 fxstein

Here's the example: http://nbbc.sourceforge.net/readme.php?page=usage_html

I cannot find the validating code itself anymore.. :(

mahagr avatar Jul 06 '11 19:07 mahagr

Sounds like we would need to pick (per post, per user, per whatever we want to) if a piece of text is bbcode or html

markdown we might be able to fit into bbcode. Need to think about this.

fxstein avatar Jul 06 '11 21:07 fxstein