dist/Wikid.js
/**
     * @description
     * Normalises the specified input string by removing invalid characters
     * and normalizing line endings to line feeds.
     *
     * @param {string} text The input string to normalize.
     * @returns {string} The normalized string.
     */
@description
Normalises the specified input string by removing invalid characters
and normalizing line endings to line feeds.

@param {string} text The input string to normalize.
@returns {string} The normalized string.
@description Normalises the specified input string by removing invalid characters and normalizing line endings to line feeds . @param { string } text The input string to normalize . @returns { string } The normalized string .
function normalize(text) {
      text = text.replace(/\r\n?|[\n\u2028\u2029]/g, "\n");
      text = text.replace(/^\uFEFF/gm, "");
      return text;
    }
function normalize ( text ) { text = text . replace ( / \r\n?|[\n\u2028\u2029] / g , "\n" ) ; text = text . replace ( / ^\uFEFF / gm , "" ) ; return text ; }
@description
 Normalises the specified input string by removing invalid characters
 and normalizing line endings to line feeds.
@description Normalises the specified input string by removing invalid characters and normalizing line endings to line feeds .
// normalise line endings (\u2029 - paragraph separator | \u2028 - line separator) // remove zero width no-break space