// See documentation at:
// https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui.ButtonWidget
new OO.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:
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