From 374743883de29fd578a4bff31694bfe2c24c8f8d Mon Sep 17 00:00:00 2001 From: Stephan Hradek Date: Thu, 5 Dec 2013 00:31:55 +0100 Subject: [PATCH] inserted > into lists --- core/modules/parsers/wikiparser/rules/list.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/modules/parsers/wikiparser/rules/list.js b/core/modules/parsers/wikiparser/rules/list.js index 2b0a70300..9f91bad27 100644 --- a/core/modules/parsers/wikiparser/rules/list.js +++ b/core/modules/parsers/wikiparser/rules/list.js @@ -52,7 +52,7 @@ exports.types = {block: true}; exports.init = function(parser) { this.parser = parser; // Regexp to match - this.matchRegExp = /([\*#;:]+)/mg; + this.matchRegExp = /([\*#;:>]+)/mg; }; var listTypes = { @@ -60,6 +60,7 @@ var listTypes = { "#": {listTag: "ol", itemTag: "li"}, ";": {listTag: "dl", itemTag: "dt"}, ":": {listTag: "dl", itemTag: "dd"} + ">": {listTag: "blockquote", itemTag: "p"} }; /* @@ -71,7 +72,7 @@ exports.parse = function() { // Cycle through the items in the list while(true) { // Match the list marker - var reMatch = /([\*#;:]+)/mg; + var reMatch = /([\*#;:>]+)/mg; reMatch.lastIndex = this.parser.pos; var match = reMatch.exec(this.parser.source); if(!match || match.index !== this.parser.pos) {