From 1aff0557e82236bc778f131282319a69559ef693 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Wed, 26 Mar 2014 13:44:24 -0700 Subject: [PATCH] mediawiki.html: Fix jsduck syntax for list, backtick html, link url * For the list to render as a list (instead of a paragraph with hyphens in it and collapsed linebreak whitespace), it has to be in block context. Meaning, a line break first. * Backtick the
tag, otherwise it becomes an actual line break as Markdown supports
. * Turn the url into an actual link (unlike wikitext, Markdown doesn't do magic linking of urls). Change-Id: I0e3913cd5f97bf37381a99cbdc6af651a8872c70 --- resources/mediawiki/mediawiki.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/mediawiki/mediawiki.js b/resources/mediawiki/mediawiki.js index 1080df3e6c..17ee2cebd7 100644 --- a/resources/mediawiki/mediawiki.js +++ b/resources/mediawiki/mediawiki.js @@ -2224,12 +2224,13 @@ var mw = ( function ( $, undefined ) { * @param {string} name The tag name. * @param {Object} attrs An object with members mapping element names to values * @param {Mixed} contents The contents of the element. May be either: + * * - string: The string is escaped. - * - null or undefined: The short closing form is used, e.g.
. + * - null or undefined: The short closing form is used, e.g. `
`. * - this.Raw: The value attribute is included without escaping. * - this.Cdata: The value attribute is included, and an exception is * thrown if it contains an illegal ETAGO delimiter. - * See http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.3.2 + * See . */ element: function ( name, attrs, contents ) { var v, attrName, s = '<' + name; -- 2.20.1