mediawiki.html: Fix jsduck syntax for list, backtick html, link url
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 26 Mar 2014 20:44:24 +0000 (13:44 -0700)
committerKrinkle <krinklemail@gmail.com>
Wed, 26 Mar 2014 20:45:09 +0000 (20:45 +0000)
* 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 <br> tag, otherwise it becomes an actual line
  break as Markdown supports <br>.

* Turn the url into an actual link (unlike wikitext, Markdown
  doesn't do magic linking of urls).

Change-Id: I0e3913cd5f97bf37381a99cbdc6af651a8872c70

resources/mediawiki/mediawiki.js

index 1080df3..17ee2ce 100644 (file)
@@ -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. <br/>.
+                                *  - null or undefined: The short closing form is used, e.g. `<br/>`.
                                 *  - 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 <http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.3.2>.
                                 */
                                element: function ( name, attrs, contents ) {
                                        var v, attrName, s = '<' + name;