in lib/rssfeed.js [79:91]
function blogcontent (s) {
// end of content
const endofsection = s.indexOf("<section class='tools'>")
const endofarticle = s.indexOf("</article>")
// possible starting point of article,
const startofparagraph = s.indexOf('<div class="paragraph">')
const startofpreamble = s.indexOf('<div id="preamble">')
// take min if defined
const startpoint = Math.min( startofparagraph>-1 ? startofparagraph : Infinity, startofpreamble >-1 ? startofpreamble: Infinity)
const endpoint = Math.min( endofsection>-1 ? endofsection : Infinity, endofarticle >-1 ? endofarticle: Infinity)
const split = s.substring( startpoint, endpoint)
return split
}