var parseResult = chordpro.parse(source);
var formatResult = chordpro.formatParseResult(parseResult);
or
var formatResult = chordpro.format(source)
format
generates HTML where, when needed, chords are wrapping together with their associated lyrics line. Default CSS that works with the generated HTML is defined in chordpro.css
.