Bull pucky.CarstenF wrote:Btw., another very important advantage of Markdown, compared to BBCode, is that you're defining logical structure such as heading, sub-heading, etc., rather than formatting, such as font-size, font-weight, etc.

Steve
Bull pucky.CarstenF wrote:Btw., another very important advantage of Markdown, compared to BBCode, is that you're defining logical structure such as heading, sub-heading, etc., rather than formatting, such as font-size, font-weight, etc.
Maybe I misunderstood, but this is how I interpreted brunoais' former posts in this thread:JoshyPHP wrote:I think the argument was that anything you can do in Markdown you can do in BBCodes, not that one should be implemented through the other.
From a technical standpoint, you can't really support Markdown "indirectly" because you'd have to convert the BBCodes back to Markdown to edit the post and that would be a lot of work and the result wouldn't even be faithful to the original.
viewtopic.php?p=13687071#p13687071brunoais wrote:[...] What I think we can do is to allow having a MarkDown to BBCode client side js translator that allows the user to write in MarkDown instead of BBCode and then it translates the MarkDown to BBCode. If the messages are simple like the ones we have been using on github, it should work well for most forum posts that require only very simple formating.
brunoais wrote:[...] I think that if someone would like to make an extension parser for MD for phpBB it's perfectly OK! For starters, I think it would be the best to have it to parse the MD into BBCode instead of MD to HTML due to how phpBB's BBCode parser work and because the BBCode parser has the tendency to make changes to the output forcing some of the MD to be lost.
It won't, if you do it like that.CarstenF wrote:What I don't understand however, if Markdown gets supported only indirectly, that is, by translating it to BBCode first, and if the BBCodes that are built into phpBB are incomplete, for example without [h1], then how will the Markdown implementation work?
peopleopinion wrote:What about to implement a real full rich text editor with icons instead bbcodes buttons?
There are plenty good solution even extensions that could be implemented into the core to replace bbcode system once for all.
Of course giving admins the possibility to add their own buttons and related functions when needed. But if the rich text editor is complete nobody will need to add new buttons in it.
Actual markdown based on BBcodes is old school IMHO: retirement time.
Oh... Understood.Ger wrote:Well, I haven't seen a good RTE in combination with a forum. IPB has it, but IMO it fails with more complex stuff like cutting quotes in several parts to respond to those parts separately. Some other issues like custom built BBcodes for LaTeX are also quite a headache.
The problem with RTE's is that you don't want to allow plain HTML due to security issues. Therefore you need to take control with something like Markdown or BBCode.
<img onmouseover="javascript:destroymybrowser();" src"verysexyimage.jpg" />
data-some-identifier-unique-to-this-site
etc. Getting all of this secure will result in building a complete HTML interpreter in PHP, almost like a rendering engine. That's brutal overkill for most situations where people post messages with minimal or BBcode at all, apart from basic links and quotes. I reckon such messages are about 95-98% of all bulletin board messages in the world.* However, you need to push all messages through this heavy interpreter to be secure.XenForo uses Redactor that works very well.Ger wrote:Well, I haven't seen a good RTE in combination with a forum.
But its good enough and way better than weird markdown or other systems. You can see exactly how post looks like, except for few bbcodes that are displayed as bbcode, such as "quote" or "code" tags.Ger wrote:I have tried it on their demo board. Quoting results in this:
While this makes it convenient to cut quotes in parts, this is of course not entirely a RTE; for complex stuff it seems to fall back to BBcode. (disclaimer: haven't played with it very much). That obviously has it advantages, but seems like only a half solution.