Instantiate
Optionalconfiguration: {options
OptionalcssClasses?: {OptionalcustomCSS?: { [key: string]: string | number | undefined }Optionaldecapo?: booleanOptionaldelegates?: { abc?: {}; grid?: {}; ly?: {}; tab?: {} }Optionalevaluate?: booleanWhether or not to evaluate meta expressions. For more info about meta expressions, see: https://bit.ly/2SC9c2u
OptionalexpandChorusDirective?: booleanWhether or not to expand {chorus} directives
by rendering the last defined chorus inline after the directive.
Optionalinstrument?: { description?: string; type?: string } | nullOptionalkey?: The key to use for rendering. The chord sheet will be
transposed from the song's original key (as indicated by the {key} directive) to the specified key.
Note that transposing will only work if the original song key is set.
Optionalmetadata?: {Optionalorder?: (Optionalseparator?: stringThe separator to be used when rendering a metadata value that has multiple values. See: https://bit.ly/2SC9c2u
OptionalnormalizeChords?: booleanWhether or not to automatically normalize chords
OptionalrenderBlankLines?: booleanOptionaluser?: { fullname?: string; name?: string } | nullOptionaluseUnicodeModifiers?: booleanWhether or not to use unicode flat and sharp symbols.
Basic CSS, in object style à la useStyles, to use with the HTML output For a CSS string see cssString
Example:
'.paragraph': {
marginBottom: '1em'
}
the CSS object
Configure the formatter with new options
New configuration options
The formatter instance for chaining
Generates basic CSS, optionally scoped within the provided selector, to use with the HTML output
For example, execute cssString('.chordSheetViewer') will result in CSS like:
.chordSheetViewer .paragraph {
margin-bottom: 1em;
}
the CSS scope to use, for example .chordSheetViewer
the CSS string
Formats a song into HTML.
The song to be formatted
The HTML string
ProtectedgetGet the default configuration for HTML formatter Uses the HTML-specific default configuration from the configuration manager
Formats a song into HTML. It uses TABLEs to align lyrics with chords, which makes the HTML for things like PDF conversion.