What do you think about Markdown?

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Suggested Hosts
Pony99CA
Registered User
Posts: 4783
Joined: Thu Sep 30, 2004 3:13 pm
Location: Hollister, CA
Name: Steve
Contact:

Re: What do you think about Markdown?

Post by Pony99CA »

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.
Bull pucky. :D BBCode has some semantic tags (Quote, Code, List, Image, etc.). And nothing prevents you (or phpBB) from adding other semantic BBCodes (H1, H2, Example, etc.).

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: What do you think about Markdown?

Post by Lumpy Burgertushie »

and by using inline css in your html equivalent, you can style those regular html tags better than you can using any type of wysiwyg editor. there is really very little you can not do with bbcode that you can do with normal html/css etc.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
CarstenF
Registered User
Posts: 33
Joined: Sat Jun 28, 2008 8:55 pm

Re: What do you think about Markdown?

Post by CarstenF »

You're both right of course. :D

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?

In other words, if the Markdown support would be limited to the subset of "target BBCodes" that are built into native phpBB, then Markdown support would be very incomplete, wouldn't it?
Best regards,
Carsten

Cafu - The Game and Graphics Engine for Multiplayer, Multiplatform, Realtime 3D Action
Learn more at www.cafu.de
User avatar
JoshyPHP
Code Contributor
Posts: 1288
Joined: Mon Jul 11, 2011 12:28 am

Re: What do you think about Markdown?

Post by JoshyPHP »

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.
I wrote the library that handles markup in phpBB 3.2+.
CarstenF
Registered User
Posts: 33
Joined: Sat Jun 28, 2008 8:55 pm

Re: What do you think about Markdown?

Post by CarstenF »

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.
Maybe I misunderstood, but this is how I interpreted brunoais' former posts in this thread:

viewtopic.php?p=13682626#p13682626
brunoais 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.
viewtopic.php?p=13687071#p13687071
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.
:? :?:
Best regards,
Carsten

Cafu - The Game and Graphics Engine for Multiplayer, Multiplatform, Realtime 3D Action
Learn more at www.cafu.de
User avatar
JoshyPHP
Code Contributor
Posts: 1288
Joined: Mon Jul 11, 2011 12:28 am

Re: What do you think about Markdown?

Post by JoshyPHP »

Oh ok, I thought you were addressing the most recent posts from Pony99CA.

That thing about translating MD into BBCodes doesn't seem viable IMO. You might as well disable BBCodes altogether and just plug a Markdown parser somewhere in the rendering process. That'd be less work.
I wrote the library that handles markup in phpBB 3.2+.
User avatar
callumacrae
Former Team Member
Posts: 2662
Joined: Tue Feb 12, 2008 12:28 pm
Location: London, UK
Name: Callum Macrae
Contact:

Re: What do you think about Markdown?

Post by callumacrae »

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?
It won't, if you do it like that.
macr.ae = my website. you probably won't like it.
Proud user ofProud user of
User avatar
peopleopinion
Registered User
Posts: 372
Joined: Thu Nov 07, 2013 7:12 pm
Contact:

Re: What do you think about Markdown?

Post by peopleopinion »

As I said into another post:
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 ;) .
Please explicate why you voted negative or positive, so it will be possible to better understand each one's point of view.
Please visit and vote my website and express freely your opinion on it (phpbb ver.: 3.0.12):
http://peopleopinion.altervista.org
Thanks. Best Regards, peopleopinion.
User avatar
Ger
Registered User
Posts: 2108
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: What do you think about Markdown?

Post by Ger »

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.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
User avatar
peopleopinion
Registered User
Posts: 372
Joined: Thu Nov 07, 2013 7:12 pm
Contact:

Re: What do you think about Markdown?

Post by peopleopinion »

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.
Oh... Understood.
But the downside is that for some bbcodes normal users do't deeply understand how they work, so they don't use them or if they do sometimes they make a mess. It will not happen if the editor is RTE because editing is visuale and what the user sees is what (s)he really gets after publishing.
It's an eternal war between security and usability...
Maybe there is a way to limit the use of the HTML to only that tags that aren't dangerous for security and eliminate bbcodes once for all.
Please explicate why you voted negative or positive, so it will be possible to better understand each one's point of view.
Please visit and vote my website and express freely your opinion on it (phpbb ver.: 3.0.12):
http://peopleopinion.altervista.org
Thanks. Best Regards, peopleopinion.
User avatar
Ger
Registered User
Posts: 2108
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: What do you think about Markdown?

Post by Ger »

Well, it isn't just about tags; it's about attributes as well. For example: one can abuse JS-events like <img onmouseover="javascript:destroymybrowser();" src"verysexyimage.jpg" />

Of course JS events are easily blacklisted, but with the power of HTML5 comes a lot more. You could hook into the scripts that read stuff like 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.

I know it's an eternal ware between security and usability, but that goes for locking your home as well. It's much more convenient when you can leave your door open so you can easily walk in your home when you have your arms full with bags from the grocery store. However: most people choose to lock their doors just to be on the safe side. ;)


*) this is just my gut feeling, not based on statistics.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Re: What do you think about Markdown?

Post by Arty »

Ger wrote:Well, I haven't seen a good RTE in combination with a forum.
XenForo uses Redactor that works very well.
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework
User avatar
Ger
Registered User
Posts: 2108
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: What do you think about Markdown?

Post by Ger »

I have tried it on their demo board. Quoting results in this:
Image

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.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Re: What do you think about Markdown?

Post by Arty »

Ger wrote:I have tried it on their demo board. Quoting results in this:
Image

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

With markdown post never appears the same as you type it. It formats text that you don't want to be formatted. Its weird and illogical.
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework
User avatar
Ger
Registered User
Posts: 2108
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: What do you think about Markdown?

Post by Ger »

I totally agree with you regarding to Markdown. I'm always lost counting the quote marks, dashes, etc. I quite dislike it and a good RTE editor would be way better.
However, every solution with RTE and forums I've seen also has it's quirks and/or drawbacks.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
Post Reply

Return to “phpBB Discussion”