vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Markdown Support by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=265416)

BirdOPrey5 06-17-2011 10:00 PM

Markdown Support by BOP5
 
1 Attachment(s)
This mod introduces support for "Markdown" syntax in vBulletin posts. Markdown is an alternative to BB Code and HTML. In some situations it may be preferable to use Markdown when formatting posts instead of BB Code.

More info on Markdown at Wikipedia: http://en.wikipedia.org/wiki/Markdown

This mod allows you to specify one or more forums on your site which will be Markdown enabled.

Please note: In a Markdown Enabled forum BB Code will not work so don't turn a forum with existing posts into a Markdown forum- you'd be best off making a new forum for this mod.

This mod makes use of a redistributable PHP library available here:
http://michelf.com/projects/php-markdown/

Syntax of Markdown is available here:
http://daringfireball.net/projects/markdown/syntax

The Library Used is "Markdown Extra" which adds extra formatting beyond the standard Markdown options:
http://michelf.com/projects/php-markdown/extra/

An example of Markdown Code is:
Code:

This is a bold test of the **Markdown Mod**. This is an _italics_ test.

    This is a code test.
    Keep 4 spaces before a line
    to turn it into a code line.                code test
    Spaces are preserved in code as well as a fixed font.        Test over.

Link Example: <http://example.com/>

`these funny backward apostrophe characters to the left of the 1 key also make code lines`

1. This is an
2. Ordered List
3. Just add numbers

* this is an
* un-ordered list

See the screenshot of how this will turn into properly formatted HTML with the mod enabled.

In addition to enabling selected forums for Markdown support the mod can at your option disable the advanced editor controls (like the BB Code toolbars) in the editors since that format will not work with Markdown anyway.

Current Version: 0.9
New in 0.9: Initial release- This is a stable Beta, no known bugs.

There is a VB3 version and a VB4 version. Please install the correct version.

Please Mark as Installed if you use this. :)

BirdOPrey5 06-18-2011 02:50 PM

Reserved.

TheLastSuperman 06-18-2011 05:32 PM

Interesting idea BOP tagged for now!

fahad_althobian 06-19-2011 01:37 AM

Thank you, Allah willing, will be installation

Brandon Sheley 06-19-2011 01:40 AM

Quote:

Originally Posted by TheLastSuperman (Post 2209521)
Interesting idea BOP tagged for now!

ditto! :up:

(the vb4 version)

troyuncucom 06-19-2011 10:13 AM

Can i use include for txt file?

BirdOPrey5 06-19-2011 10:25 AM

Quote:

Originally Posted by troyuncucom (Post 2209801)
Can i use include for txt file?

I don't understand the question. :confused:

NAZIA 07-17-2011 04:28 PM

Link example, must be..

Code:

[link text here](link.address.here "link title here")
qouted from
Code:

http://en.wikipedia.org/wiki/Markdown#Links
instead of using ,,

Code:

Link Example: <http://example.com/>
by the way good work...

Plugin Pete 07-17-2011 06:25 PM

BOP, I'm curious as to the practical application of another markup language. Is it capable of doing things that BB Code cannot? Maybe there is a significant amount of Markdown content that I'm not aware of.

Thanks!

Pete

BirdOPrey5 07-17-2011 07:05 PM

Quote:

Originally Posted by NAZIA (Post 2221519)
Link example, must be..

Code:

[link text here](link.address.here "link title here")
qouted from
Code:

http://en.wikipedia.org/wiki/Markdown#Links
instead of using ,,

Code:

Link Example: <http://example.com/>
by the way good work...

That is a more proper way, but both will work if you use the http://. I guess the <url> is a shortcut or something.

Quote:

Originally Posted by Plugin Pete (Post 2221555)
BOP, I'm curious as to the practical application of another markup language. Is it capable of doing things that BB Code cannot? Maybe there is a significant amount of Markdown content that I'm not aware of.

Thanks!

Pete

I have no great love for "markdown" - I made this mod per a request- someone who had a forum for programmers I believe wanted markdown support. It's just a matter a preference IMO, I always found myself typing _like this_ or *this* to add emphasis anyway, it's nice to see those really many something in a language like Markdown.

The popular site http://stackoverflow.com uses Markdown in all their "forums." Now I lnow how to use it. :D

Plugin Pete 07-17-2011 07:07 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2221572)
The popular site http://stackoverflow.com uses Markdown in all their "forums." Now I lnow how to use it. :D

Thanks for the link to stackoverflow.com. That helped. :up:

Adrian Schneider 07-17-2011 07:12 PM

It's used a lot for documentation. It's a lot more human readable than BBCode so it's a little easier to read/write (IMO). WYSIWYG can get frustrating - this provides a nice middle ground where you can tell what the formatting is at a glance, without actually using WYSIWYG.

GitHub is another big player that uses (or supports) it.

Plugin Pete 07-17-2011 07:23 PM

Quote:

Originally Posted by Adrian Schneider (Post 2221576)
It's used a lot for documentation.

That's what I was wondering and why I asked. Documentation makes sense.


All times are GMT. The time now is 04:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01171 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete