<commit_before># Lede

**Lede** is a jQuery plugin that styles an arbitrary leading number of words, creating a professional appearance like those in newspapers and magazines.

Although CSS has [pseudo-elements](http://www.w3.org/TR/CSS2/selector.html#pseudo-element-selectors) such as [:first-line](http://www.w3.org/TR/CSS2/selector.html#first-line-pseudo) and [:first-letter](http://www.w3.org/TR/CSS2/selector.html#first-letter), it continues to lack the ability to select and style an arbitrary number of words from the beginning of a paragraph.

Its name comes from the [lede paragraph](http://en.wikipedia.org/wiki/Lead_paragraph) of news articles in the journalism industry.

## Demo

[Please see the demo](http://richardcornish.github.io/jQuery-Lede/) to see these examples in action.

    // Demo 1: Default options
    $('.article-1').lede();

    // Demo 2: First 10 words
    $('.article-2').lede({ words: 10 });

    // Demo 3: `<span>` with class of `run-in`
    $('.article-3').lede({ classname: 'run-in' });

    // Demo 4: Disable default style<commit_msg>Fixed broken demo link<commit_after># Lede

**Lede** is a jQuery plugin that styles an arbitrary leading number of words, creating a professional appearance like those in newspapers and magazines.

Although CSS has [pseudo-elements](http://www.w3.org/TR/CSS2/selector.html#pseudo-element-selectors) such as [:first-line](http://www.w3.org/TR/CSS2/selector.html#first-line-pseudo) and [:first-letter](http://www.w3.org/TR/CSS2/selector.html#first-letter), it continues to lack the ability to select and style an arbitrary number of words from the beginning of a paragraph.

Its name comes from the [lede paragraph](http://en.wikipedia.org/wiki/Lead_paragraph) of news articles in the journalism industry.

## Demo

[Please see the demo](http://richardcornish.github.io/jquery-lede/) to see these examples in action.

    // Demo 1: Default options
    $('.article-1').lede();

    // Demo 2: First 10 words
    $('.article-2').lede({ words: 10 });

    // Demo 3: `<span>` with class of `run-in`
    $('.article-3').lede({ classname: 'run-in' });

    // Demo 4: Disable default style
{'fraction_non_alphanumeric': 0.14093648585999072, 'fraction_numerical': 0.01576263328697265, 'mean_word_length': 3.8823529411764706, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3155507', 'n_tokens_mistral': 692, 'n_tokens_neox': 657, 'n_words': 218}