Skip to content

Preserve rhythm symbols in chords-over-words lines#2214

Open
aouxwoux wants to merge 1 commit into
martijnversluis:masterfrom
aouxwoux:codex/chords-over-words-symbol-classes
Open

Preserve rhythm symbols in chords-over-words lines#2214
aouxwoux wants to merge 1 commit into
martijnversluis:masterfrom
aouxwoux:codex/chords-over-words-symbol-classes

Conversation

@aouxwoux

@aouxwoux aouxwoux commented Jul 8, 2026

Copy link
Copy Markdown

Summary

Preserve rhythm-symbol metadata when a chords-over-words chord line is paired with a lyric line.

The parser already marked /, |, -, and x as rhythm symbols on chord-only lines, and the HTML formatters already render those items with the configured rhythm-symbol class. In the mixed chords-over-words path, those items were cast through the chord-only type and lost isRhythmSymbol, so they rendered as regular chords.

This keeps the original item type through lyric pairing and sets isRhythmSymbol for rhythm markers there too.

Part of #2070.

Validation

  • yarn eslint src/parser/chords_over_words/helpers.ts test/parser/chords_over_words_parser.test.ts
  • yarn jest test/parser/chords_over_words_parser.test.ts test/formatter/html_table_formatter.test.ts test/formatter/html_div_formatter.test.ts --runInBand

@aouxwoux aouxwoux marked this pull request as ready for review July 8, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant