lib/srt.js
function(text) {
        return macros.cleanMacros(text.replace(/\n/g, '{break}').replace(/<i>/g, '{italic}').replace(/<\/i>/g, '{end-italic}'));
    }
function(text) {
        return macros.cleanMacros(text.replace(/\n/g, '{break}').replace(/<i>/g, '{italic}').replace(/<\/i>/g, '{end-italic}'));
    }
function ( text ) { return macros . cleanMacros ( text . replace ( / \n / g , '{break}' ) . replace ( / <i> / g , '{italic}' ) . replace ( / <\/i> / g , '{end-italic}' ) ) ; }
converts SRT stylings to macros
@function
@param {string} text - text to render macros for
@public
converts SRT stylings to macros