Content deleted Content added
insert line too (publish.php) |
pull request #152: Update link ___location, notification method, and namespace check (publish.php) |
||
Line 12:
- Top uses:
- remove extra line breaks (for example, 3 enters in a row)
- in the first sentence, bold the title
- convert curly quotes to regular quotes
Line 18:
- clean external links out of the main article area (turn them into references)
- add ==References== section
- removes bold from headings▼
-
- converts [inline external links] to <ref>s
- removes spaces in front of <ref>s
- get rid of any level 2 heading that contains the article's title
▲ - removes bold from headings
- converts =TitleHeading= to ==H2Heading==
- replaces Covid-19 with COVID-19
Line 32 ⟶ 30:
- remove self wikilinks to the article title
- convert ==Reference== to ==References==
- turn bare URLs into references
- fix errant spaces at beginning of lines, which makes a blockquote looking thing
- delete whitespace at the end of lines
- convert double spaces to single spaces
- remove blank heading
Line 139 ⟶ 134:
//if ( ! [0, 118].includes(namespaceNumber) && ! sandbox ) return;
// @ts-ignore
let menuID = window.draftCleanerPutInToolsMenu ? 'p-tb' : 'p-navigation';
|