Firefox PHP

New Mod: MarkdownExtra with automatic Table of Content

Posted by mphilop 
All files from this thread

File Name File Size   Posted by Date  
MarkdownExtra.php 84.2 KB open | download mphilop 07/30/2007 Read message
New Mod: MarkdownExtra with automatic Table of Content
July 30, 2007 07:30PM
So this is the initial release of my first Phorum Module

this module adds Mardown extra features you can see here:
[www.michelf.com]

This module also adds an Automatic table of content on the top of the message based on html/markdown headers

ideas for next release:
Settings to :
- enable/disable the automatic TOC
- make TOC only on the first thread's message

PS: of course you just have to put the MarkDown.php file in mods directory and switch on the module in admin (don't forget to switch off the "older" markdown module)

BUGS: i didnt find the way to make it work properly AFTER BBcode (it doesnt work in quoted blocks)(note: it seems it's the Extra part of the markdown classes which cause that), so its why his name starts with 'A' (since modules are started by alphabetical order) any help about this matter would be greatly appreciated



Edited 4 time(s). Last edit at 07/30/2007 08:05PM by mphilop.
Attachments:
open | download - MarkdownExtra.php (84.2 KB)
Sorry, only registered users may post in this forum.

Click here to login