Rework content commands, add audio player

This commit is contained in:
Christoph Hagen
2024-12-14 16:31:40 +01:00
parent b3b8c9a610
commit be2aab2ea8
52 changed files with 1758 additions and 767 deletions

View File

@@ -13,20 +13,17 @@ enum ShorthandMarkdownKey: String {
/// Format: `![image](<imageId>;<caption?>]`
case image
/// Statistics about hiking
/// Format: `![hiking-stats](<`
case hikingStatistics = "hiking-stats"
/// Labels with an icon and a value
/// Format: `![labels](<icon=value>...)`
case labels
/// A video
/// Format: `![video](<fileId>;<option1...>]`
case video
/// An SVG image
/// Format: `![svg](<fileId>;<<x>;<y>;<width>;<height>?>)`
/// A variable number of download buttons for file downloads
/// Format: `[download](<<fileId>,<text>,<download-filename?>;...)`
case downloadButtons = "download"
/// Format: `[buttons](type=<<fileId>,<text>,<download-filename?>;...)`
case buttons
/// A box with a title and content
/// Format: `![box](<title>;<body>)`
@@ -40,20 +37,16 @@ enum ShorthandMarkdownKey: String {
/// Format: `![page](<pageId>)`
case pageLink = "page"
/// A large button to an external page.
/// Format: `![external](<<url>;<text>...>`
case externalLink = "external"
/// A large button to a git/github page
/// Format: `![git](<<url>;<text>...>`
case gitLink = "git"
/// Additional HTML code include verbatim into the page.
/// Format: `![html](<fileId>)`
case includedHtml = "html"
/// SVG Image showing only a part of the image
/// Format `![svg](<fileId>;`
/// Format `![svg](<fileId>;<<x>;<y>;<width>;<height>>?)`
case svg
/// A player to play audio files
/// Format: `![audio-player](<fileId>;<text>)`
case audioPlayer = "audio-player"
}