chordsketch-render-html
HTML renderer for ChordPro documents. Produces self-contained HTML5 documents with chords positioned above lyrics.
Part of the ChordSketch project.
Usage
use parse;
use render_song;
let input = "{title: Amazing Grace}\n[G]Amazing [G7]grace";
let song = parse.unwrap;
let html = render_song;
Features
- Self-contained HTML5 output
- Chord positioning above lyrics
- Metadata display (title, subtitle, artist)
- Section styling
- HTML escaping for user-provided text content (note: delegate
environments such as
{start_of_svg}emit raw HTML by design; use a Content Security Policy when rendering untrusted input)