resources/www/scripts/collapsible.js
function (mml) {
      this.UncollapseChild(mml,1);
      if (mml.complexity > this.COLLAPSE.fenced) {
        if (mml.attr["data-semantic-role"] === "leftright") {
          var marker = mml.data[0].data.join("") + mml.data[mml.data.length-1].data.join("");
          mml = this.MakeAction(this.Marker(marker),mml);
        }
      }
      return mml;
    }
function (mml) {
      this.UncollapseChild(mml,1);
      if (mml.complexity > this.COLLAPSE.fenced) {
        if (mml.attr["data-semantic-role"] === "leftright") {
          var marker = mml.data[0].data.join("") + mml.data[mml.data.length-1].data.join("");
          mml = this.MakeAction(this.Marker(marker),mml);
        }
      }
      return mml;
    }
function ( mml ) { this . UncollapseChild ( mml , 1 ) ; if ( mml . complexity > this . COLLAPSE . fenced ) { if ( mml . attr [ "data-semantic-role" ] === "leftright" ) { var marker = mml . data [ 0 ] . data . join ( "" ) + mml . data [ mml . data . length - 1 ] . data . join ( "" ) ; mml = this . MakeAction ( this . Marker ( marker ) , mml ) ; } } return mml ; }
For fenced elements, if the contents are collapsed, collapse the fence instead.
For fenced elements if the contents are collapsed collapse the fence instead .