Author: kake
Date: 2012-08-19 10:13:28 +0100 (Sun, 19 Aug 2012)
New Revision: 1435
Modified:
trunk/Build.PL
trunk/Changes
trunk/lib/OpenGuides/Utils.pm
Log:
Added new allowed elements (fixes #303), changed external link formatting as discussed on
openguides-dev.
Modified: trunk/Build.PL
===================================================================
--- trunk/Build.PL 2012-08-17 16:24:05 UTC (rev 1434)
+++ trunk/Build.PL 2012-08-19 09:13:28 UTC (rev 1435)
@@ -302,7 +302,7 @@
'Wiki::Toolkit' => '0.80',
'Wiki::Toolkit::Feed::Atom' => 0,
'Wiki::Toolkit::Feed::RSS' => 0,
- 'Wiki::Toolkit::Formatter::UseMod' => 0,
+ 'Wiki::Toolkit::Formatter::UseMod' => 0.24, #for
external_link_class
'Wiki::Toolkit::Plugin::Categoriser' => 0,
'Wiki::Toolkit::Plugin::Diff' => 0,
'Wiki::Toolkit::Plugin::JSON' => 0,
Modified: trunk/Changes
===================================================================
--- trunk/Changes 2012-08-17 16:24:05 UTC (rev 1434)
+++ trunk/Changes 2012-08-19 09:13:28 UTC (rev 1435)
@@ -4,8 +4,23 @@
<http://dev.openguides.org/log/trunk>.
0.70 ?
+ New elements allowed in page content: span, dl, dt, dd (fixes #303).
+ Changed external link formatting; they're now given a class of
+ "external" and the previous hardcoded square brackets are no more.
+ If you want the old behaviour back, put this in your CSS (with
+ "black" replaced by whatever colour you have your body text in):
+ a.external:before {
+ content: "[";
+ color: black;
+ }
+
+ a.external:after {
+ content: "]";
+ color: black;
+ }
Updated URLs for Leaflet JavaScript and CSS.
- Added meta descriptions to headers of map and list index pages.
+ Added meta descriptions to headers of map and list index pages
+ (fixes #301).
Implemented new @INDEX_LIST_NO_PREFIX macro.
0.69 07 July 2012
Modified: trunk/lib/OpenGuides/Utils.pm
===================================================================
--- trunk/lib/OpenGuides/Utils.pm 2012-08-17 16:24:05 UTC (rev 1434)
+++ trunk/lib/OpenGuides/Utils.pm 2012-08-19 09:13:28 UTC (rev 1435)
@@ -230,12 +230,14 @@
implicit_links => 0,
allowed_tags => [qw(a p b strong i em pre small img table td
tr th br hr ul li center blockquote kbd
- div code strike sub sup font)],
+ div code span strike sub sup font dl dt dd
+ )],
macros => \%macros,
pass_wiki_to_macros => 1,
node_prefix => "$script_name?",
edit_prefix => "$script_name?action=edit;id=",
munge_urls => 1,
+ external_link_class => "external",
);
my %conf = ( store => $store,
Show replies by date