Thread Rating:
  • 3 Vote(s) - 2.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2.0 Markdown
#1
Markdown has been around for a long time and I'm surprised adoption is pretty low. BBCode is practically unusable after using Markdown - Markdown makes much more sense and is easier to read/write.

Quote:The overriding design goal for Markdown’s formatting syntax is to make it as readable as possible. The idea is that a Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions. While Markdown’s syntax has been influenced by several existing text-to-HTML filters, the single biggest source of inspiration for Markdown’s syntax is the format of plain text email.

You can read more about Markdown at Daring Fireball: Markdown.

I propose having Markdown as MyBB 2.0's default text formatting system; or as an included option instead of BBCode.
[Image: 422.png]
Reply
#2
I checked it out and I see why adoption is low. It's overkill and syntax that's not widely used.

I can't imagine MyBB would want to redo their mycode system in such a way that anything 1.6x would be incompatible. All upgraded forums would have to have major changes to get posts to work the same.

I really don't see it happening. But thanks for the library link.

EDIT: Umm..this is in Perl. Useless to MyBB which is written in PHP.
Reply
#3
(2011-08-09, 08:06 AM)labrocca Wrote: I checked it out and I see why adoption is low. It's overkill and syntax that's not widely used.

I can't imagine MyBB would want to redo their mycode system in such a way that anything 1.6x would be incompatible. All upgraded forums would have to have major changes to get posts to work the same.

I really don't see it happening. But thanks for the library link.

EDIT: Umm..this is in Perl. Useless to MyBB which is written in PHP.

You must not have read far enough; it's been ported to PHP.

I'm not sure what you mean by overkill. So you mean the system is too extensive, or that typing it out is harder than BBCode? It's rather elegant, and definitely easier to use and understand than BBCode:

[This is a link to Google](http://google.com/)

[url=http://google.com/]This is a link to Google[/url]

The difference is clear; Markdown integrates into the flow of language much better than BBCode does. Also, "adoption is low [because ...] it's not widely used" - what?

It would be trivial to add custom syntaxes; regardless, I stated that it should at least be included in the default package as an option. Alternatively, make the post formatting system modular so BBCode can be easily removed and replaced.
[Image: 422.png]
Reply
#4
I replaced MyBB's built-in MyBB parser with my own parser along time ago. I just made sure that my parser class followed the same interface (function names, parameters, etc). My parser is also fully recursive instead of relying solely on regular expressions (eg. I can dictate which tags can be nested, much like HTML's block and inline classification). Unfortunately this means custom codes defined in the ACP don't work.
Reply
#5
This would be nice http://markitup.jaysalvat.com/home/

Example with Markdown syntax: http://markitup.jaysalvat.com/examples/markdown/
Example with Wiki syntax: http://markitup.jaysalvat.com/examples/wiki/

Other examples: http://markitup.jaysalvat.com/examples/
Reply
#6
(2011-08-16, 06:38 AM)ekerazha Wrote: This would be nice http://markitup.jaysalvat.com/home/

Example with Markdown syntax: http://markitup.jaysalvat.com/examples/markdown/
Example with Wiki syntax: http://markitup.jaysalvat.com/examples/wiki/

Other examples: http://markitup.jaysalvat.com/examples/
If worse comes to worse and BBCode is mistakenly chosen over Markdown I can always implement that as a plugin. :/
[Image: 422.png]
Reply
#7
That MarkItUp editor looks kinda cool.
Reply
#8
(2011-08-09, 08:06 AM)labrocca Wrote: I can't imagine MyBB would want to redo their mycode system in such a way that anything 1.6x would be incompatible. All upgraded forums would have to have major changes to get posts to work the same.

I didn't look at the MyBB 1.x database, but I hope that markup is saved as HTML (better interoperability, no need to re-parse BBcode etc.)
Reply
#9
I just thought of something. With a WYSIWYG editor is really going to matter that much in the end to ever day user? And, I hope they stick bbcode since it's pretty simple I would imagine the everyday person could figure it out pretty quickly.
Reply
#10
(2011-08-18, 10:09 AM)ekerazha Wrote: I didn't look at the MyBB 1.x database, but I hope that markup is saved as HTML (better interoperability, no need to re-parse BBcode etc.)

The mybb_posts table only stores the MyCode, not the pre-parsed HTML.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)