${h.number ? html`${h.number}. ` : nothing}${h.english ?? h.chinese ?? 'Hexagram'}
${h.chinese ? html`${h.chinese}` : nothing}
${h.pinyin ? html` ยท ${h.pinyin}` : nothing}
${
h.upperTrigram
? html`
Upper
${TRIGRAM_GLYPH[h.upperTrigram] ?? ''}${h.upperTrigram}
`
: nothing
}
${
h.lowerTrigram
? html`
Lower
${TRIGRAM_GLYPH[h.lowerTrigram] ?? ''}${h.lowerTrigram}
`
: nothing
}
${h.judgment ? html`
${h.judgment}
` : nothing}
${h.image ? html`
${h.image}
` : nothing}
${dailyMessage ? html`
${dailyMessage}
` : nothing}
${
h.interpretation?.general
? html`
${h.interpretation.general}
`
: nothing
}
${
changing.size > 0
? html`
Changing lines: ${Array.from(changing)
.sort((a, b) => a - b)
.join(', ')}.
${
resultingHexagram?.english
? html` Becomes hexagram ${resultingHexagram.number}
${resultingHexagram.english}.`
: nothing
}
`
: nothing
}