bettermusic / ChordSheetJS

A JavaScript library for parsing and formatting ChordPro chord sheets
GNU General Public License v2.0
4 stars 1 forks source link

💡 RFC: Phase 1 '\' bakcslash line breaking #568

Open isaiahdahl opened 1 year ago

isaiahdahl commented 1 year ago
isaiahdahl commented 7 months ago
{
  type: 'chordSheet',
  lines: [
    {
      type: 'line',
      items: [
        {
          type: 'tag',
          name: 'c',
          value: 'Verse 1',
          location: {
            offset: 0,
            line: 1,
            column: 1
          }
        }
      ]
    },
    {
      type: 'line',
      items: [
        {
          type: 'chordLyricsPair',
          chords: 'D',
          lyrics: ' '
        },
        {
          type: 'chordLyricsPair',
          chords: '',
          lyrics: 'Praying'
        },
        {
          type: 'chordLyricsPair',
          chords: 'Dsus',
          lyrics: ' '
        },
        {
          type: 'chordLyricsPair',
          chords: '',
          lyrics: 'for a'
        },
        {
          type: 'softLineBreak'
        },
        {
          type: 'chordLyricsPair',
          chords: '',
          lyrics: 'miracle,'
        },
        {
          type: 'chordLyricsPair',
          chords: 'D',
          lyrics: ' '
        },
        {
          type: 'chordLyricsPair',
          chords: '',
          lyrics: 'thirsty'
        },
        {
          type: 'chordLyricsPair',
          chords: 'Dsus',
          lyrics: ''
        }
      ]
    }
  ]
}