From 6f65c077e8ac9c254207d2506812e81d5c1ea018 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 21 Jun 2016 17:06:32 +0100 Subject: [PATCH] Auto-link URLs --- MyMarkdown.php | 2 ++ metadata.json | 4 ++-- qa-markdown-viewer.php | 2 +- qa-plugin.php | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/MyMarkdown.php b/MyMarkdown.php index f91fc16..47dfd24 100644 --- a/MyMarkdown.php +++ b/MyMarkdown.php @@ -2,6 +2,8 @@ class MyMarkdown extends \cebe\markdown\Markdown { + use \cebe\markdown\inline\UrlLinkTrait; + /** * Handle new lines */ diff --git a/metadata.json b/metadata.json index a577a83..173bcab 100644 --- a/metadata.json +++ b/metadata.json @@ -2,8 +2,8 @@ "name": "Markdown Editor", "uri": "https://github.com/svivian/q2a-markdown-editor", "description": "Markdown editor plugin for simple text-based markup", - "version": "2.5", - "date": "2016-06-08", + "version": "2.5.1", + "date": "2016-06-21", "author": "Scott Vivian", "author_uri": "http://codelair.com", "license": "GPLv3", diff --git a/qa-markdown-viewer.php b/qa-markdown-viewer.php index 757486f..b35e6f6 100644 --- a/qa-markdown-viewer.php +++ b/qa-markdown-viewer.php @@ -21,7 +21,7 @@ public function calc_quality($content, $format) public function get_html($content, $format, $options) { if (isset($options['blockwordspreg'])) { - require_once QA_INCLUDE_DIR.'qa-util-string.php'; + require_once QA_INCLUDE_DIR.'util/string.php'; $content = qa_block_words_replace($content, $options['blockwordspreg']); } diff --git a/qa-plugin.php b/qa-plugin.php index bb532cc..8b917e7 100644 --- a/qa-plugin.php +++ b/qa-plugin.php @@ -3,8 +3,8 @@ Plugin Name: Markdown Editor Plugin URI: https://github.com/svivian/q2a-markdown-editor Plugin Description: Markdown editor plugin for simple text-based markup - Plugin Version: 2.5 - Plugin Date: 2015-07-30 + Plugin Version: 2.5.1 + Plugin Date: 2016-06-21 Plugin Author: Scott Vivian Plugin Author URI: http://codelair.com/ Plugin Contributors: NoahY