src/core/utils.js
function removeLeadingLinebreaks(text) {
    let linebreak = determineLinebreaks(text);
    if (linebreak === "") return text;

    while (text.startsWith(linebreak)) {
        text = text.slice(linebreak.length);
    }

    return text;
}
function removeLeadingLinebreaks(text) {
    let linebreak = determineLinebreaks(text);
    if (linebreak === "") return text;

    while (text.startsWith(linebreak)) {
        text = text.slice(linebreak.length);
    }

    return text;
}
function removeLeadingLinebreaks ( text ) { let linebreak = determineLinebreaks ( text ) ; if ( linebreak === "" ) return text ; while ( text . startsWith ( linebreak ) ) { text = text . slice ( linebreak . length ) ; } return text ; }
Remove any leading empty lines found inside the given text.

@param  {String} text Original text
@return {String} Trimmed text
Remove any leading empty lines found inside the given text .