Skip to content

Commit ea6d661

Browse files
committed
Use new version of chordMark2ChordPro
1 parent f3b85e7 commit ea6d661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/chord-charts-studio/src/core/renderSong.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { renderSong as renderSongCm, parseSong } from 'chord-mark';
2-
import chordMark2ChordPro from 'chord-mark-2-chordpro';
2+
import { chordMark2ChordPro } from 'chord-mark-converters';
33

44
import stripTags from './stripTags';
55

@@ -23,7 +23,7 @@ function render(songTxt, renderOptions, useChartFormat, outputFormat) {
2323
if (useChartFormat && renderOptions.chartFormat === 'chordmarkSrc') {
2424
return outputFormat === 'html' ? toHtml(songTxt) : songTxt;
2525
} else if (useChartFormat && renderOptions.chartFormat === 'chordpro') {
26-
renderOptions.customRenderer = chordMark2ChordPro;
26+
renderOptions.customRenderer = chordMark2ChordPro();
2727
const chordProTxt = renderSong(songTxt, renderOptions);
2828
return outputFormat === 'html' ? toHtml(chordProTxt) : chordProTxt;
2929
} else {

0 commit comments

Comments
 (0)