Skip to content

shaekuronen/jquery.breakbuster

Repository files navigation

Breakbuster

Prevent Linebreaks on Hyphens and Dashes

See demo at http://shaekuronen.github.io/jquery.breakbuster/

Getting Started

Download the production version or the development version.

In your web page:

<script src="jquery.js"></script>
<script src="dist/jquery.breakbuster.min.js"></script>
<script>
jQuery(function($) {
  // get the elements you want to prevent linebreaks in
  $('h1, h2, h3, h4, h5, h6, p').breakbuster({
    // defaults to hyphen, en dash, em dash but can override and prevent break on any character
    characters: ['-', '–']
  });
});
</script>

Documentation

(Coming soon)

Examples

Release History

(Nothing yet)