Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Markdown Guide Extension
=======================

* Version: 1.5
* Author: Carson Sasser ([email protected])
* Build Date: 17 January 2012
* Requirements: Tested on Symphony CMS versions 2.0.6, 2.0.7 and 2.1.1. Requires version 1.11 of the Markdown Text Formatter extension.
* Version: 1.6
* Author: Stuart Palmer, Carson Sasser
* Build Date: 11 November 2014
* Requirements: Tested on Symphony CMS version 2.5+. Requires version 1.11 of the Markdown Text Formatter extension.

Installation
------------
Expand All @@ -23,6 +23,10 @@ TODO
Change Log
----------

Version 1.6 - 11 November 2014

- Add XML meta file

Version 1.5 - 17 January 2012

- Corrected a typographical error found by Martin Janiczek
Expand Down
2 changes: 1 addition & 1 deletion assets/markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

$description = array(
array(__('Headers'), __('Precede with a # for each level desired as in: ### This is an h3 header')),
array(__('Paragraphs'), __('Seperate with a blank line')),
array(__('Paragraphs'), __('Separate with a blank line')),
array(__('Blockquotes'), __('Precede with a > (two >> will produce a quote within a quote)')),
array(__('Unordered lists'), __('Precede list items with a *, + or -')),
array(__('Ordered lists'), __('Precede list items with a number followed by a period')),
Expand Down
29 changes: 10 additions & 19 deletions extension.driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
public function about() {
$info = array(
'author' => array(
'email' => 'sassercw@cox.net',
'name' => 'Carson Sasser',
'website' => 'http://carsonsasser.com/'
'email' => 'stuart@eyes-down.net',
'name' => 'Stuart Palmer, Carson Sasser',
'website' => 'http://www.eyes-down.net'
),
'name' => 'Markdown Guide',
'release-date' => '2010-09-28',
'version' => '1.3'
'release-date' => '2014-11-12',
'version' => '1.6'
);
return $info;
}
Expand Down Expand Up @@ -45,19 +45,10 @@ public function addGuideBelowTextArea($context) {
$context['textarea'] = Widget::Label('');

//retrieve the guide and append it
switch($formatter){
case 'markdown':
$file = EXTENSIONS . '/markdown_guide/assets/markdown.php';
break;
case 'markdown_extra':
$file = EXTENSIONS . '/markdown_guide/assets/markdown_extra.php';
break;
case 'markdown_extra_with_smartypants':
$file = EXTENSIONS . '/markdown_guide/assets/markdown_extra_with_smartypants.php';
break;
case 'markdown_with_purifier':
$file = EXTENSIONS . '/markdown_guide/assets/markdown_with_purifier.php';
break;
if (file_exists(EXTENSIONS . '/markdown_guide/assets/' . $formatter . '.php')) {
$file = EXTENSIONS . '/markdown_guide/assets/' . $formatter . '.php';
} else {
$file = EXTENSIONS . '/markdown_guide/assets/markdown.php';
}

include($file);
Expand All @@ -71,7 +62,7 @@ public function addGuideBelowTextArea($context) {
}

public function initaliseAdminPageHead($context) {
$page = $context['parent']->Page;
$page = Administration::instance()->Page;
$page->addScriptToHead(URL . '/extensions/markdown_guide/assets/toggle_guide.js', 900200);
}
}
Expand Down
24 changes: 24 additions & 0 deletions extension.meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<extension id="markdown_guide" status="released" xmlns="http://getsymphony.com/schemas/extension/1.0">
<name>Markdown Guide</name>
<description>Provides markdown text formatter syntax explanation</description>
<repo type="github">https://github.com/stuartgpalmer/markdown_guide</repo>
<url type="discuss" />
<types>
<type>Text Formatters</type>
</types>
<authors>
<author>
<name github="symphonycms" symphony="team">Stuart Palmer, Carson Sasser</name>
<website>http://getsymphony.com</website>
</author>
</authors>
<releases>
<release version="1.6" date="2014-11-12" min="2.4" max="2.5.2">
- Compatibility with Symphony 2.4+
</release>
<release version="1.5" date="2012-11-12" min="2.1" max="2.3">
</release>

</releases>
</extension>