71 lines
1.8 KiB
Swift
71 lines
1.8 KiB
Swift
import Foundation
|
|
|
|
/**
|
|
A string key used in markdown to indicate special elements
|
|
*/
|
|
enum ShorthandMarkdownKey: String {
|
|
|
|
/// An image
|
|
/// Format: ``
|
|
case labels
|
|
|
|
/// A video
|
|
/// Format: ``
|
|
Types:
|
|
- Download: `download=<fileId>,<text>,<download-filename?>`
|
|
- External link: `external=<url>,<text>`
|
|
- Git: `git=<url>,<text>`
|
|
- Play: `play-circle=<text>,<click-action>`
|
|
*/
|
|
case buttons
|
|
|
|
/// A box with a title and content
|
|
/// Format: ``
|
|
case box
|
|
|
|
/// A 3D model to display
|
|
/// Format: ``
|
|
case model
|
|
|
|
/// A pretty link to another page on the site.
|
|
/// Format: ``
|
|
case pageLink = "page"
|
|
|
|
/// A pretty link to a tag list on the site.
|
|
/// Format: ``
|
|
case tagLink = "tag"
|
|
|
|
/// Additional HTML code included verbatim into the page.
|
|
/// Format: ``
|
|
case includedHtml = "html"
|
|
|
|
/// SVG Image showing only a part of the image
|
|
/// Format ``
|
|
case svg
|
|
|
|
/// A player to play audio files
|
|
/// Format: ``
|
|
case audioPlayer = "audio-player"
|
|
|
|
/// Add svg icons to the page for use in html components
|
|
/// Format: ``
|
|
case icons
|
|
|
|
/**
|
|
Create an image comparison with a slider.
|
|
Format: ``
|
|
*/
|
|
case imageCompare = "compare"
|
|
|
|
}
|