From fcd1c5af5274f9946676278da05fd1cfcac72eff Mon Sep 17 00:00:00 2001 From: Luna <105922175+ImLunaHey@users.noreply.github.com> Date: Sat, 28 Dec 2024 09:34:31 +1030 Subject: [PATCH] feat: bold, italic and underline text --- lexicons/app/bsky/richtext/facet.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lexicons/app/bsky/richtext/facet.json b/lexicons/app/bsky/richtext/facet.json index 388a3a5e0ef..d1b5eafd50c 100644 --- a/lexicons/app/bsky/richtext/facet.json +++ b/lexicons/app/bsky/richtext/facet.json @@ -10,7 +10,7 @@ "index": { "type": "ref", "ref": "#byteSlice" }, "features": { "type": "array", - "items": { "type": "union", "refs": ["#mention", "#link", "#tag"] } + "items": { "type": "union", "refs": ["#mention", "#link", "#tag", "#bold", "#italic", "#underline"] } } } }, @@ -38,6 +38,18 @@ "tag": { "type": "string", "maxLength": 640, "maxGraphemes": 64 } } }, + "bold": { + "type": "object", + "description": "Facet feature for bold text." + }, + "italic": { + "type": "object", + "description": "Facet feature for italic text." + }, + "underline": { + "type": "object", + "description": "Facet feature for underlined text." + }, "byteSlice": { "type": "object", "description": "Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets.",