Skip to content

Releases: martijnversluis/ChordSheetJS

Add option to not render blank lines

27 Mar 13:33
Compare
Choose a tag to compare

This PR adds an configuration option to the HTML formatters that can enables or disables rendering blank lines:

const song = (perform your parsing here);
const formatter = new ChordSheetJS.HtmlDivFormatter({ renderBlankLines: false });
const formattedChordSheet = formatter.format(song);

Group lines in paragraphs

06 Jun 08:11
Compare
Choose a tag to compare

As of this version, besides the Song#lines property, the song contents can also be read off the Song#paragraph property, in which the lines are grouped in paragraphs, leaving out the single blank lines.

v2.4.4

24 May 06:30
Compare
Choose a tag to compare

Changes:

Fixed bugs

Handling whitespace

The HTML formatters were trying to be smart about whitespace, which resulted in bug #52. The following chord sheet:

[C]Wisper words of wis[G]dom

was accidentally formatted as (note the space inside "wisdom"):

C                   G
Wisper words of wis dom

As of this release (2.4.4), it is formatted as:

C                  G
Wisper words of wisdom

See #52 and #53.