Skip to main content

strip_links_section

Function strip_links_section 

Source
pub fn strip_links_section(content: &str) -> &str
Expand description

content with the trailing ## Links section the engine rendered removed — exactly the content it was rendered onto, on a source that stores what it is sent.

The section is recognised only as the last thing in content: a line holding exactly LINKS_HEADING, followed by nothing but blank lines and bullets — - or * , because Linear stores a - bullet as * and changes blank lines. Anything else after the heading means a person wrote it, and content is answered unchanged.