You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// See documentation at: // https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui.ButtonWidgetnewOO.ui.ButtonWidget({"label": "Normal"})
The URL in the second line is only highlighted (and turned into a link) till the # that is - https://doc.wikimedia.org/oojs-ui/master/js/# which takes the user to the wrong place.
Workaround
prism-autolinker supports Markdown syntax, so we can work around it like this:
url='https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui.ButtonWidget';out='// See documentation at: \n// ['+url+']('+url+')\n'+out;
If the following code is higlighted:
The URL in the second line is only highlighted (and turned into a link) till the
#
that is -https://doc.wikimedia.org/oojs-ui/master/js/#
which takes the user to the wrong place.Workaround
prism-autolinker supports Markdown syntax, so we can work around it like this:
Details
This was discovered while creating the following patch - https://gerrit.wikimedia.org/r/#/c/356398
The text was updated successfully, but these errors were encountered: