In https://doc.wikimedia.org/mediawiki-core/master/js/module-mediawiki.util.html#.addPortlet, there is an extra paragraph break after "Dropdown". This is due to including <pre> tags in the code comment.
To do:
- In https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/master/resources/src/mediawiki.util/util.js#522, replace <pre> tags with markdown code block formatting (three backticks on new lines)
- Run npm install and npm run doc to build the docs site
- Open docs/js/module-mediawiki.util.html#.addPortlet to confirm that the formatting appears correctly