Skip to main content

Module condense

Module condense 

Source
Expand description

Condensing comment bodies for listing.

Review bots wrap a few sentences of finding in HTML comments holding their state, badge images and <details> blocks of prompts and walkthroughs. Condensing removes the comments and badges, collapses each <details> to its summary and caps what is left at a number of lines, with a marker saying how much was cut. Suggestion blocks are code to apply, so they are always kept whole, even inside a collapsed <details> or past the cap. Other code blocks are kept intact by the HTML rules (an HTML comment inside a code block is code) but count toward the cap.

Structs§

Condensed

Functions§

condense
suggestion
The contents of the first suggestion block.