Instantly share code, notes, and snippets.

Embed
What would you like to do?
module Jekyll
module Filters
def summarize(str, splitstr = /\s*<div id="extended">/)
str.split(splitstr)[0]
end
end
end
@joshkerr

This comment has been minimized.

Show comment
Hide comment
@joshkerr

joshkerr Sep 26, 2011

What does this plugin do?

joshkerr commented Sep 26, 2011

What does this plugin do?

@mat813

This comment has been minimized.

Show comment
Hide comment
@mat813

mat813 Sep 26, 2011

Hum, it removes everything after

/\s*<div id="extended">/

(or whichever regexp you pass on)

Owner

mat813 commented Sep 26, 2011

Hum, it removes everything after

/\s*<div id="extended">/

(or whichever regexp you pass on)

@arademaker

This comment has been minimized.

Show comment
Hide comment
@arademaker

arademaker Nov 29, 2011

Congratulations! Simple and great plugin!

arademaker commented Nov 29, 2011

Congratulations! Simple and great plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment