ChWebsiteApp/CHDataManagement/Generator/ShorthandMarkdownKey.swift
2024-12-13 11:26:34 +01:00

60 lines
1.5 KiB
Swift

import Foundation
/**
A string key used in markdown to indicate special elements
*/
enum ShorthandMarkdownKey: String {
/// A standard url
/// Format: `![url](<url>;<text>)`
case url
/// An image
/// Format: `![image](<imageId>;<caption?>]`
case image
/// Statistics about hiking
/// Format: `![hiking-stats](<`
case hikingStatistics = "hiking-stats"
/// 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"
/// A box with a title and content
/// Format: `![box](<title>;<body>)`
case box
/// A 3D model to display
/// Format: `![model](<file>;<description>)`
case model
/// A pretty link to another page on the site.
/// 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>;`
case svg
}