Jump to content

Extension:LineBreaks

From mediawiki.org
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
MediaWiki extensions manual
LineBreaks
Release status: stable
Implementation Parser extension
Author(s) Dli7319talk
Latest version 1.0 (2020-07-20)
MediaWiki
Licence MIT License
Download

The LineBreaks extension allows you to use Markdown linebreaks in your wikitext.

Specifically, this extension converts \s\s\n and \\\n to <br />\n during the parsing stage.

Installation

  • Download and place the file(s) in a directory called LineBreaks in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'LineBreaks' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.