Second is a bit more complicated. The filter will check the content it was used on, for a horizontal line, with a specific ID or Class, and then truncate the content at that point.
I think a third one called truncate_block could also be handy. A block wrapped by a specific
I think this feature would serve better as a completely separate app. Since it can be very usefull in other places also. It also breaks the main focus of tehblog a little bit, and we really dont need this by default.
Create 2 new filters, similar to
truncate_words
.First will be
truncate_paragraphs
.Second is a bit more complicated. The filter will check the content it was used on, for a horizontal line, with a specific ID or Class, and then truncate the content at that point.
I think a third one called
truncate_block
could also be handy. A block wrapped by a specificI think this feature would serve better as a completely separate app. Since it can be very usefull in other places also. It also breaks the main focus of tehblog a little bit, and we really dont need this by default.