Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More precise excerpt selection #11

Open
danielhusar opened this issue May 20, 2015 · 2 comments
Open

More precise excerpt selection #11

danielhusar opened this issue May 20, 2015 · 2 comments

Comments

@danielhusar
Copy link

What you guys thinks about adding functionality to specify either number of paragraphs to take, or minimum characters. (so if first paragraph have less than minimum characters, take also next one and so on..)

I can prepare PR if you are interested in it.

@woodyrew
Copy link
Member

A PR would be welcome. It would be good to maintain the API and add the functionality via a switch.

@webketje webketje changed the title Take more than 1 paragraph or minimum characters Additional options Dec 8, 2021
@webketje
Copy link
Member

webketje commented Dec 8, 2021

I would add option truncate: stringthat would truncate the snippet to a max. of n characters and add an ellipsis (...). The truncate option could take an instruction string like 50 words/100 chars/1 sentence/ comment. comment would refer to #41. I don't think specifying a minimum is a common need for an excerpt.

@webketje webketje changed the title Additional options More precise excerpt selection Dec 8, 2021
@webketje webketje mentioned this issue Dec 8, 2021
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants