chordsketch-render-html 0.4.0

HTML renderer for ChordPro documents
Documentation

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 chordsketch_chordpro::parser::parse;
use chordsketch_render_html::render_song;

let input = "{title: Amazing Grace}\n[G]Amazing [G7]grace";
let song = parse(input).unwrap();
let html = render_song(&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)

Links

License

MIT