AddJocomojiTag
struct AddJocomojiTag : UnsafeUnescapedLeafTag
Runs the element sanitizer on the given string, and then converts Jocomoji (specific string tags with the form :tag:) into inline images. Generally, use this tag for user text that isn’t posts.
Usage: #addJocomoji(String) -> String
-
Declaration
Swift
static let jocomoji: [String] -
The
<img>tag for a jocomoji by name; shared byaddJocomojiandrewriteInline.Declaration
Swift
static func imgTag(for emojiTag: String) -> String -
Declaration
Swift
static func process(_ str: String) -> String -
Declaration
Swift
func render(_ ctx: LeafContext) throws -> LeafData
View on GitHub